The WM_MOUSEACTIVATE message is sent when the cursor is in an inactive window and the user presses a mouse button. The parent window receives this message only if the child window passes it to the DefWindowProc function.
WM_MOUSEACTIVATE hwndTopLevel = (HWND) wParam; // handle of top-level parent nHittest = (INT) LOWORD(lParam); // hit-test value uMsg = (UINT) HIWORD(lParam); // mouse message
The return value specifies whether the window should be activated and whether the identifier of the mouse message should be discarded. It must be one of the following values:
Value |
Meaning |
MA_ACTIVATE |
Activates the window, and does not discard the mouse message. |
MA_ACTIVATEANDEAT |
Activates the window, and discards the mouse message. |
MA_NOACTIVATE |
Does not activate the window, and does not discard the mouse message. |
MA_NOACTIVATEANDEAT |
Does not activate the window, but discards the mouse message. |
The DefWindowProc function passes the message to a child window’s parent window before any processing occurs. The parent window determines whether to activate the child window. If it activates the child window, the parent window should return MA_NOACTIVATE or MA_NOACTIVATEANDEAT to prevent the system from processing the message further.
file: /Techref/os/win/api/win32/mess/src/msg25_26.htm, 3KB, , updated: 2000/4/7 11:20, local time: 2024/11/14 07:28,
44.210.149.218: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/msg25_26.htm"> WM_MOUSEACTIVATE</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! |
.