BCGControlBar Pro for MFC
virtual BOOL CBCGPColorBar::CreateControl ( CWnd *  pParentWnd,
const CRect &  rect,
UINT  nID,
int  nColumns = -1,
CPalette *  pPalette = NULL 
)
virtual

Creates the Windows control and performs additional initialization steps for the color bar control.

Returns
TRUE if the function succeeds; otherwise FALSE.

Call this function to creates the Windows control and performs additional initialization steps for the color bar control. This function builds the color table according to the bounding rectangle, the number of columns and specified by pPalette palette.

Parameters
pParentWndPoints to the parent window. Can't be NULL.
rectThe bounding rectangle.
nIDControl ID.
nColumnsNumber of columns.
pPaletteThe color palette to use.