Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes a palette with the colors in a specified array of colors.
static BOOL CreatePalette(
   const CArray<COLORREF, COLORREF>& arColors, 
   CPalette& palette
);
Parameters
| Parameter | Description | 
|---|---|
| [in] arColors | An array of colors. | 
| [in] palette | A palette of colors. | 
Return Value
TRUE if this method is successful; otherwise, FALSE.
Requirements
Header: afxcolorbar.h