BCGControlBar Pro for MFC
static void CBCGPToolBar::EnableContentDialogsForControlsInMenu ( BOOL  bEnable = TRUE,
UINT  nFllags = BCGP_CONTETNT_DLG_MENU_ITEM_ELLIPSIS,
const CList< UINT, UINT > *  pLstExcludedCommands = NULL 
)
static

Enables displaying the dialogs with the corresponding toolbar control from the menu item with control's ID.

Call the EnableContentDialogsForControlsInMenu method to allow automatically launching the dialog with the toolbar control when the button with the control is displayed on the popup menu.

Parameters
bEnableTrue to enable, false to disable.
nFllagsThe comination of the following flags: fllags:
  • BCGP_CONTETNT_DLG_MENU_ITEM_ELLIPSIS: automatically add the ellipsis to the menu item where the dialog is avaibale;
  • BCGP_CONTETNT_DLG_CHEVRON_MENU_ONLY: display the dialog with control on the customization ("chevron") menu only;
pLstExcludedCommandsList of commands for which dialogs are not allowed to be displayed.