BCGControlBar Pro for MFC
CBCGPRibbonCaptionCustomButton::CBCGPRibbonCaptionCustomButton ( UINT  uiCmd,
HICON  hIcon,
UINT  nFlags = BCGP_RIBBON_CAPTION_CUSTOM_BUTTON_DISPLAY_IN_NORMAL_MODE | BCGP_RIBBON_CAPTION_CUSTOM_BUTTON_DISPLAY_IN_BACKSTAGE_MODE,
BOOL  bAutoDestroyIcon = FALSE 
)
inline

Constructor.

Parameters
uiCmdThe command ID.
hIconThe icon of the custom icon (use 16x16 icon). Because in some visual themes the Ribbon caption is transparent, this icon should have the alpha channel (RGBA, 32 bpp resolution).
nFlagsSpecifies whether the caption button should be displayed. This parameter is a combination of the following values: BCGP_RIBBON_CAPTION_CUSTOM_BUTTON_DISPLAY_IN_NORMAL_MODE, BCGP_RIBBON_CAPTION_CUSTOM_BUTTON_DISPLAY_IN_BACKSTAGE_MODE and BCGP_RIBBON_CAPTION_CUSTOM_BUTTON_DISPLAY_IN_HIDDEN_MODE..
bAutoDestroyIconSpecifies whether the icon shoud be automatically destroyed.