Toolbar Menu Buttons
BCGControlBar Pro (MFC)
BCGSuite (MFC)
BCGControlBar for .NET
There are several Toolbar Menu button types available for your application in BCGControlBar Library:
- a regular menu item
- a menu item with a submenu
- a toolbar button with a submenu; in this case the button has a small arrow near the text or image. When the user clicks the button, the submenu is displayed
- a toolbar button, which executes a default command or displays a popup menu; in this case the button has a small arrow separated from the text or image. When the user presses the arrow, the submenu is displayed; otherwise, the default button's command is executed.
Toolbar button with a dropped-down menu:
Sample code:
// Create a menu button:
CBCGPToolbarMenuButton btnNew (uiNewCmdID, hMenuNew /* Handle of menu */,
CImageHash::GetImageOfCommand (uiNewCmdID));
// Replace an existing toolbar button by the menu button:
m_wndToolBar.ReplaceButton (ID_FILE_NEW, btnNew);