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 » Equivalents for ModifyMenu and GetMenuState in ProfUI Collapse All
Subject Author Date
Nilesh Yeolekar May 30, 2007 - 5:13 AM

I want to replace ModifyMenu and GetMenuState of CMenu with that of CExtPopupMenuWnd members.
Are they available? If not, pls suggest some workaround for it.

Thanks

Technical Support May 30, 2007 - 12:21 PM

The menu items inserted with the CExtPopupMenuWnd::ItemInsert() method will have the enabled/checked/radio state updated using the MFC’s command updating mechanism. The menu items inserted with the CExtPopupMenuWnd::ItemInsertCommand() method, which inserts menu items which have NO references to command descriptions in the command manager and NOT updated with MFC’s command updating mechanism, will have the state based on the method parameters and you can use this method and other CExtPopupMenuWnd methods.