void CBCGPRibbonPaletteButton::SetPalette | ( | UINT | uiImagesPaletteResID, |
int | cxPaletteImage, | ||
UINT | uiImagesPaletteSimplifiedResID = 0 , |
||
int | cxPaletteImageSimplified = 0 |
||
) |
Attaches a palette (gallery) to the ribbon palette button.
Use this method to attach a gallery to the button on the fly.
uiImagesPaletteResID | Resource ID of an image list with palette (gallery) icons. |
cxPaletteImage | Specifies the width of a palette (gallery) image. |
uiImagesPaletteSimplifiedResID | Specifies a resource ID of an image list, which contains images for the group. This image list will be displayed in the Ribbon simplified mode only. |
cxPaletteImageSimplified | Specifies the width of an image (simplified mode). |