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.
uiID | Button command ID. This ID will be sent along with WM_COMMAND when the user selects a palette item. |
iImage | Index of image displayed with the palette menu button itself. |
lpszText | Menu item text. |
imagesPalette | List of images for the palette. |