Popup Menu sends "UnInit" Before sending a command
ATL / WTL / STL
1
Posts
1
Posters
0
Views
1
Watching
-
I did a window just for the menu so inherit from CFrameWindowImpl. Then I add dynamic items to the menu. I captured the MSG_WM_MENUCOMMAND(OnMenuCommand) In the function "OnMenuCommand" I try to get the information of the item ... The menu handle was invalid... So I did a test and found out so The message "MSG_WM_UNINITMENUPOPUP" is sent before the message "MSG_WM_MENUCOMMAND" Why is it so? and how I can solve the problem? Thanks in advence