CMFCColorBar::Create
Creates a color bar control window and attaches it to the CMFCColorBar object.
virtual BOOL Create(
CWnd* pParentWnd,
DWORD dwStyle,
UINT nID,
CPalette* pPalette=NULL,
int nColumns=0,
int nRowsDockHorz=0,
int nColDockVert=0
);
Parameters
[in] pParentWnd
Pointer to the parent window.[in] dwStyle
A bitwise combination (OR) of window styles.[in] nID
The command ID.[in] pPalette
Pointer to a palette of colors. The default is NULL.[in] nColumns
The number of columns in the color bar control. The default is 0.[in] nRowsDockHorz
The number of rows in the color bar control when it is docked horizontally. The default is 0.[in] nColDockVert
The number of columns in the color bar control when it is docked vertically. The default is 0.
Return Value
TRUE if this method is successful; otherwise, FALSE.
Remarks
To construct a CMFCColorBar object, call the class constructor then this method. The Create method creates the Windows control and initializes a list of colors.
Requirements
Header: afxcolorbar.h