Override the WndProc handler, so that the WM_MOUSEACTIVATE
message always activates the MenuStrip.
Otherwise if the host Form is a child window (consider the case
of Material Explorer as Extended Viewport), clicking the MenuStrip
won't activate the Form . Also, if the host Form is a child window
and it's already active, the default .NET MenuStrip returns
MA_ACTIVATEANDEAT for a WM_MOUSEACTIVATE message. This prevents the
message to be properly handled: clicking on menu item won't really
"hit" the item. Related essay: http://blogs.msdn.com/rickbrew/archive/2006/01/09/511003.aspx
- Parameters:
-
m |
Window message to be handled |