BCGControlBar Pro for MFC
CBCGPRibbonPaletteMenuButton::CBCGPRibbonPaletteMenuButton ( UINT  uiID,
int  iImage,
LPCTSTR  lpszText,
UINT  uiImagesPaletteResID = 0,
int  cxPaletteImage = 0 
)

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.
uiImagesPaletteResIDResource ID of image list for the palette.
cxPaletteImageSpecifies the width of palette image.