CMFCColorButton::SetDocumentColors
Specifies a set of colors and the set's name. The set of colors is displayed using a CMFCColorBar Class object.
void SetDocumentColors(
LPCTSTR lpszLabel,
CList<COLORREF,COLORREF>& lstColors
);
Parameters
[in] lpszLabel
Specifies the label to be displayed with the set of document colors.[in] lstColors
A reference to a list of RGB values.
Remarks
A CMFCColorButton object maintains a list of RGB values that are transferred to a CMFCColorBar Class object. When the color bar is displayed, these colors are shown in a special section whose label is specified by the lpszLabel parameter.
Requirements
Header: afxcolorbutton.h