BCGControlBar Pro for MFC
CBCGPRibbonPaletteButton::CBCGPRibbonPaletteButton ( UINT  nID,
LPCTSTR  lpszText,
int  nSmallImageIndex,
int  nLargeImageIndex,
CSize  sizeIcon,
int  nIconsNum,
BOOL  bDefaultButtonStyle = TRUE,
CSize  sizeIconSimplified = CSize(0, 0),
RibbonSimplifiedModeType  type = RibbonSimplifiedOnScreenCompact,
BOOL  bHideInFullMode = FALSE 
)

Constructs a ribbon palette button (gallery) object.

If the gallery displays user-defined icons, you have to set nIconsNum to 0 and call AddGroup() later.

If bDefaultButtonStyle is set to FALSE, you need to implement custom drawing of icon (button) borders and content.

Parameters
nIDSpecifies the button command ID.
lpszTextSpecifies the button text.
nSmallImageIndexZero-based index of button's image in the image list of small icons.
nLargeImageIndexZero-based index of the button's image in the list of large images.
sizeIconSpecifies the size of gallery image.
nIconsNumSpecifies the number of icons in the gallery.
bDefaultButtonStyleSpecifies whether to use the default button style, or owner-draw button style.
sizeIconSimplifiedSpecifies the size of gallery image (Ribbon simplified mode).
typeSpecifies a ribbon element appearance in the Ribbon simplified mode.
bHideInFullModeSpecifies whether a ribbon element is invisible in the Ribbon classic (non-simplified) mode.