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

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

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.
bOnPopupMenuSpecifies whetehr the color box is located on the popup color bar.
TRUE if custom drawing was peformed; FALSE - make the default drawing.