L
linganmm
Guest
Hi, I am trying to popup a menu through CContextMenuManager:
theApp.GetContextMenuManager()->ShowPopupMenu(myMenu->GetSafeHmenu(), rect.left + 200, rect.top + 200, this);
and the popup menu will disappear when mouse clicking the window or type return key.
However, what I need is to destroy/hide the menu by a keystroke (other keys instead of return).
Looks CContextMenuManager doesnot provide methods like hideMenu() or destoryMenu().
Struggled for a long time but haven't figured it out yet:-(
Anybody has ideas about it?
Thanks in advance.
Continue reading...
theApp.GetContextMenuManager()->ShowPopupMenu(myMenu->GetSafeHmenu(), rect.left + 200, rect.top + 200, this);
and the popup menu will disappear when mouse clicking the window or type return key.
However, what I need is to destroy/hide the menu by a keystroke (other keys instead of return).
Looks CContextMenuManager doesnot provide methods like hideMenu() or destoryMenu().
Struggled for a long time but haven't figured it out yet:-(
Anybody has ideas about it?
Thanks in advance.
Continue reading...