BCGControlBar Pro for MFC
virtual BOOL CBCGPRibbonColorButton::OnDrawColorBox ( CDC *  pDC,
CRect  rectColorBox,
COLORREF  color,
BOOL  bIsHighlighted,
BOOL  bIsSelected,
BOOL  bFirstInColumn,
BOOL  bLastInColumn 
)
inlineprotectedvirtual

Override this method to customize a color box appearance.

Parameters
pDCA pointer to device context.
rectColorBoxA color box bounding rectangle.
colorThe color (RGB value).
bIsHighlightedSpecifies whether the button is highlighted.
bIsSelectedSpecifies whether the button is selected.
bFirstInColumnSpecifies whether the button is a first in column.
bLastInColumnSpecifies whether the button is a last in column.
Returns
TRUE if custom drawing was performed and no default drawing is required.