Toolbar Menu Buttons

Fully implemented BCGControlBar Pro (MFC)

Not available BCGSuite (MFC)

Fully implemented 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:

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);