windows_programming_notes.nbk: Home | Index | Next Page: WM_ACTIVATEAPP | Previous Page: WinMain


 WM_ACTIVATE

The WM_ACTIVATE message is sent to both the window being activated and the window being deactivated. If the windows use the same input queue, the message is sent synchronously, first to the window procedure of the top-level window being deactivated, then to the window procedure of the top-level window being activated. If the windows use different input queues, the message is sent asynchronously, so the window is activated immediately.

Parameters

Return Value

If an application processes this message, it should return zero.

Remarks

If the window is being activated and is not minimized, the DefWindowProc function sets the keyboard focus to the window. If the window is activated by a mouse click, it also receives a WM_MOUSEACTIVATE message.

Notification Requirements


windows_programming_notes.nbk: Home | Index | Next Page: WM_ACTIVATEAPP | Previous Page: WinMain


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time