BCGControlBar Pro for MFC
CBCGPRibbonPaletteMenuButton::CBCGPRibbonPaletteMenuButton ( UINT  uiID,
int  iImage,
LPCTSTR  lpszText,
CBCGPToolBarImages imagesPalette 
)

Constructs a ribbon palette menu button object.

When the user selects a palette item, the library sends the WM_COMMAND message along with palette menu button ID specified by uiID. Then you should call static method CBCGPRibbonPaletteButton::GetLastSelectedItem in order to determine the selected palette item.

Parameters
uiIDButton command ID. This ID will be sent along with WM_COMMAND when the user selects a palette item.
iImageIndex of image displayed with the palette menu button itself.
lpszTextMenu item text.
imagesPaletteList of images for the palette.