Window deactivation message?
What is the opposite of WM_ACTIVATE (Window deactivation messa开发者_开发问答ge)?
It is the same message, but with a different argument - wparam = WA_INACTIVE.
Full details here.
The message is WM_ACTIVATE. This message is sent both when the window is activated, and when it is deactivated. You can tell if it is deactivated by looking at the wParam parameter - either it is WA_ACTIVE or WA_CLICKACTIVE (activated), or it is WA_INACTIVE (inactivated).
精彩评论