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

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