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 General Discussion » How to add two pop-up menus dynamically Collapse All
Subject Author Date
anil vyas May 1, 2007 - 3:17 AM

Hi,
I am trying to create 2 pop-up menus which should be attached in my application dynamically. I want that one of these menus must be visible at run time and one menu should not be seen during run-time. When I run my application and open customize dialog box, I should be able to see both the menus in the categories list of command tab of customize dialog box. Also the command list in customize dialog box should be filled with the menu items such that these menu items can be placed as toolbar button.

Technical Support May 2, 2007 - 8:32 AM

You can learn about this from How to insert menu items at run time?.

This is also demonstrated in the ProfUIS_Controls sample where the CExtPopupMenuWnd::g_nMsgPrepareMenu registered message is handled for modifying menus on-the-fly.