tags:

views:

63

answers:

2

What is the opposite of WM_ACTIVATE (Window deactivation message)?

+3  A: 

It is the same message, but with a different argument - wparam = WA_INACTIVE.

Full details here.

Otávio Décio
Could you kindly provide it?
Nick Brooks
Oh , WA_INACTIVE
Nick Brooks
+2  A: 

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).

Andreas Rejbrand