CMFCColorButton::SetDocumentColors

指定设置颜色和集名称。 使用 CMFCColorBar Class 对象,并设置颜色显示。

void SetDocumentColors(
   LPCTSTR lpszLabel,
   CList<COLORREF,COLORREF>& lstColors 
);

参数

  • [in] lpszLabel
    可以指定要显示的标签与设置文档颜色。

  • [in] lstColors
    为RGB值列表的引用。

备注

CMFCColorButton 对象维护的RGB值列表传输到 CMFCColorBar Class 对象。 当对有色人种的可显示时,这些颜色在标签 lpszLabel 由参数指定的特定部分显示。

要求

标头: afxcolorbutton.h

请参见

参考

CMFCColorButton Class

层次结构图