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 Tech Support » API for insertion of dynamic menu item Collapse All
Subject Author Date
howard liu Aug 14, 2008 - 2:03 PM


Is there any specific prof-ui API for insertion of dynamic menu item in CExtMenuPopupWindow

We tried to insert using MFC API insert menu item & delete menu item to perform some dynamic updations in the drop down and popup menu




Technical Support Aug 15, 2008 - 3:27 PM

The CExtPopupMenuWnd::ItemInsert() method inserts a menu item based on the command manager or menu separator item or classic menu popup item. The CExtPopupMenuWnd::ItemInsertCommand() method inserts a menu command item which is not based on the command manager. The CExtPopupMenuWnd::InsertSpecPopup() method can be used for inserting any Prof-UIS specific advanced sub menu: color picker menu, undo-redo menu, date picker menu, list box menu or any your custom popup menu object. The CExtPopupMenuWnd::g_nMsgPrepareOneMenuLevel() registered message is sent by all the popup menus at any level before menu window appear on the screen. You can handle this message like demonstrated in our sample applications (ProfUIS_Controls for example) and implement dynamic menu construction.