CBCGPRibbonButton::CBCGPRibbonButton | ( | UINT | nID, |
LPCTSTR | lpszText, | ||
int | nSmallImageIndex = -1 , |
||
int | nLargeImageIndex = -1 , |
||
BOOL | bAlwaysShowDescription = FALSE , |
||
RibbonSimplifiedModeType | type = RibbonSimplifiedOnScreenCompact , |
||
BOOL | bHideInFullMode = FALSE |
||
) |
Construct ribbon button object.
Image indexes are the indexes in the parent category's image list. If you leave nSmallImageIndex set to BCGPRIBBON_IMAGE_AUTO, then the library automatically assigns index of the next image.
nID | Button's command ID. |
lpszText | Specifies button's text label. |
nSmallImageIndex | Zero-based index of button's small image in the parent category's image list. |
nLargeImageIndex | Zero-based index of button's large image in the parent category's image list. |
bAlwaysShowDescription | Set this parameter to TRUE to always show the button's description. |
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. |