Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Which is the current menu in OnExtMenuPrepare? Collapse All
Subject Author Date
Bangjun Lei Feb 19, 2008 - 1:20 PM

Dear Sir./Madam.,

Is there any easy way to find out which one is the current popmenu in OnExtMenuPrepare? Is it possible to check about current popmenu’s ID?

Thanks!

Technical Support Feb 20, 2008 - 6:11 AM

The CExtPopupMenuWnd class implements a popup menu and any instance of this class is always dynamic, i.e. it exists only until the menu tree is displayed on the screen. So, you can only detect which menu sends a notification by detecting command identifiers of menu items (by using the CExtPopupMenuWnd::ItemFindPosForCmdID() method).