The WM_ACTIVATE message is sent when a window is being activated or deactivated. This message is sent first to the window procedure of the top-level window being deactivated; it is then sent to the window procedure of the top-level window being activated.
WM_ACTIVATE fActive = LOWORD(wParam); // activation flag fMinimized = (BOOL) HIWORD(wParam); // minimized flag hwndPrevious = (HWND) lParam; // window handle
Value |
Meaning |
WA_ACTIVE |
Activated by some method other than a mouse click (for example, by a call to the SetActiveWindow function or by use of the keyboard interface to select the window). |
WA_CLICKACTIVE |
Activated by a mouse click. |
WA_INACTIVE |
Deactivated. |
If an application processes this message, it should return zero.
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.
DefWindowProc, SetActiveWindow, WM_MOUSEACTIVATE, WM_NCACTIVATE
file: /Techref/os/win/api/win32/mess/src/msg22_1.htm, 3KB, , updated: 2000/4/7 11:20, local time: 2024/11/23 21:57,
18.222.20.250:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/techref/os/win/api/win32/mess/src/msg22_1.htm"> WM_ACTIVATE</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.