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/12/7 18:39,
18.97.9.168: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://www.piclist.com/techref/os/win/api/win32/mess/src/msg22_1.htm"> WM_ACTIVATE</A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.