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 » Default pop-up menu Collapse All
Subject Author Date
Jawid Sep 13, 2002 - 4:06 PM

How can I remove the appearance of default (which contains the names of toolbars and dockbars) popup menu in docking windows.


Thanks,

Sergiy Lavrynenko Sep 17, 2002 - 1:21 PM

Dear Jawid,

This is a little bit advanced question. I am going to a add special notification message for handling this situation in future. There are two possible ways to solve this problem:

1) Catch the registered CExtPopupMenuWnd::g_nMsgPrepareMenu message in the frame window and modify the popup menu (see how it works in the "Prof-UIS controls" sample). But you should detect (by analyzing menu items) whether popup menu is the menu you need to change.

2)You may modify the library’s source code for the CExtDockBar::_ContextMenuBuild() function (file Src/ExtDockBar.cpp), which constructs the menu containing commands for all bars.