Professional UI Solutions
Site Map   /  Register


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 General Discussion » Modify mainframe menu at runtime Collapse All
Subject Author Date
raphael verdier Sep 4, 2013 - 4:06 AM

The user click on the option A and we remove from the main menu some items and submenu. At one moment the user click on the option B, we need to show the items and submenu deleted by the option A.


Is it possible to completely reload the main frame menu ? How to do this ?

Or is it possible to hide some items and submenu ?(not disabled)


thanks for your help



raphael verdier Oct 7, 2013 - 4:46 AM

I remove the item by using this function :

CMenu * p_menu = this->m_MainMenu.GetMenu();

        p_menu = this->m_MainMenu.GetMenu();

        p_menu->DeleteMenu(ID_MNU_ITEM, MF_BYCOMMAND);


If we can modify main menu at runtime, it possible to load two main menu and change between the two menu ?

Art Wilkes Sep 16, 2013 - 8:46 AM

How are you removing the menu items? Please show the code. Thanks