Question on Menu Events
-
When a menu is gone(the user clicks on an menu item, or hits the esc key, or clicks on the desktop, etc), can its parent window be notified? I only could find WM_INITMENU and WM_INITMENUPOPUP on MSDN, which are sent before the menu shows up, which are not I'm looking for...
-
When a menu is gone(the user clicks on an menu item, or hits the esc key, or clicks on the desktop, etc), can its parent window be notified? I only could find WM_INITMENU and WM_INITMENUPOPUP on MSDN, which are sent before the menu shows up, which are not I'm looking for...
There are
WM_EXITMENULOOP
andWM_UNINITMENUPOPUP
, are those what you're looking for? You also get aWM_MENUSELECT
withHIWORD(wParam)==0xFFFF
andlParam==0
when the user cancels a menu. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- Pinky, are you pondering what I'm pondering? I think so Brain, but if we shaved our heads, we'd look like weasels! -
There are
WM_EXITMENULOOP
andWM_UNINITMENUPOPUP
, are those what you're looking for? You also get aWM_MENUSELECT
withHIWORD(wParam)==0xFFFF
andlParam==0
when the user cancels a menu. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- Pinky, are you pondering what I'm pondering? I think so Brain, but if we shaved our heads, we'd look like weasels!