BCGControlBar Pro for MFC
virtual BOOL CBCGPColorBar::Create ( CWnd *  pParentWnd,
DWORD  dwStyle,
UINT  nID,
CPalette *  pPalette = NULL,
int  nColumns = 0,
int  nRowsDockHorz = 0,
int  nColDockVert = 0 
)
virtual

Creates a Windows control and performs additional initializations

You construct a CBCGPColorBar object in two steps. First, call the constructor, then call Create(), which creates the Windows control and initializes a list of colors. When creating, you can apply the regular control bar styles.

Parameters
pParentWndThe parent window
dwStyleThe window style.
nIDThe command ID.
pPaletteA pointer to palette.
nColumnsThe number of columns.
nRowsDockHorzThe number of rows when docked horizontally.
nColDockVertThe number of columns when docked vertically.