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.
nID | Specifies the button command ID. |
lpszText | Specifies the button text. |
nSmallImageIndex | Zero-based index of button's image in the image list of small icons. |
nLargeImageIndex | Zero-based index of the button's image in the list of large images. |
sizeIcon | Specifies the size of gallery image. |
nIconsNum | Specifies the number of icons in the gallery. |
bDefaultButtonStyle | Specifies whether to use the default button style, or owner-draw button style. |
sizeIconSimplified | Specifies the size of gallery image (Ribbon simplified mode). |
type | Specifies a ribbon element appearance in the Ribbon simplified mode. |
bHideInFullMode | Specifies whether a ribbon element is invisible in the Ribbon classic (non-simplified) mode. |