void CBCGPRibbonColorButton::EnableAutomaticButton | ( | LPCTSTR | lpszLabel, |
COLORREF | colorAutomatic, | ||
BOOL | bEnable = TRUE , |
||
LPCTSTR | lpszToolTip = NULL , |
||
BOOL | bOnTop = TRUE , |
||
BOOL | bDrawBorder = FALSE |
||
) |
Enables and disables "automatic" button that appears above the regular color buttons.
Call this function to enable and disable "automatic" button and set the automatic color to the specified by colorAutomatic color.
lpszLabel | Specifies the automatic button's text. |
colorAutomatic | An RGB value that specifies the automatic button's default color. |
bEnable | Specifies whether the automatic button is enabled or disabled. |
lpszToolTip | Specifies tooltip of automatic button. |
bOnTop | Adds automatic button at the top, before color palette. |
bDrawBorder | Specifies whether to draw a border around the color bar on the ribbon color button. (Color bar displays the currently selected color). |