BCGControlBar Pro for MFC
virtual BOOL CBCGPColorBar::OnDrawPaletteColorBox ( CDC *  pDC,
const CRect  rectColor,
COLORREF  color,
BOOL  bIsAutomatic,
BOOL  bIsSelected 
)
inlinevirtual

Called by the framework when the palette color box should be drawn.

Parameters
pDCA pointer to a device context
rectColorA color box bounding rectangle.
colorThe color (RGB value).
bIsAutomaticSpecifies whetehr the color box is automatic (default).
bIsSelectedSpecifies whether the color box is selected.
Returns
TRUE if custom drawing was peformed; FALSE - make the default drawing.