CMFCColorBar::CMFCColorBar

构造 CMFCColorBar 对象。

CMFCColorBar(
   const CArray<COLORREF,COLORREF>& colors,
   COLORREF color,
   LPCTSTR lpszAutoColor,
   LPCTSTR lpszOtherColor,
   LPCTSTR lpszDocColors,
   CList<COLORREF,COLORREF>& lstDocColors,
   int nColumns,
   int nRowsDockHorz,
   int nColDockVert,
   COLORREF colorAutomatic,
   UINT nCommandID,
   CMFCColorButton* pParentBtn 
);
CMFCColorBar(
   const CArray<COLORREF,COLORREF>& colors,
   COLORREF color,
   LPCTSTR lpszAutoColor,
   LPCTSTR lpszOtherColor,
   LPCTSTR lpszDocColors,
   CList<COLORREF,COLORREF>& lstDocColors,
   int nColumns,
   COLORREF colorAutomatic,
   UINT nCommandID,
   CMFCRibbonColorButton* pParentRibbonBtn 
);
CMFCColorBar(
   CMFCColorBar& src,
   UINT uiCommandID 
);

参数

  • [in] colors
    框架在对有色人种的、控件显示的颜色。

  • [in] color
    最初选定的颜色。

  • [in] lpszAutoColor
    自动 (默认值)颜色按钮的文本标签或 NULL。

    自动按钮的标准标签是 自动

  • [in] lpszOtherColor
    另一个 按钮,以显示更多颜色选择,或 NULL的文本标签。

    另一个按钮的标准标签是 更多颜色…

  • [in] lpszDocColors
    文档中的文本标签"按钮。文档调色板列表文档中当前使用的任何颜色。

  • [in] lstDocColors
    文档当前使用颜色的列表。

  • [in] nColumns
    颜色中的列数。

  • [in] nRowsDockHorz
    为有色人种的、具有的行数时水平停靠。

  • [in] nColDockVert
    为有色人种的、具有的列数时垂直停靠。

  • [in] colorAutomatic
    该结构适用的默认颜色,当您单击自动按钮。

  • [in] nCommandID
    为有色人种的、管理命令ID.

  • [in] pParentBtn
    对父按钮的指针。

  • [in] src
    要复制的现有 CMFCColorBar 对象到新 CMFCColorBar 对象。

  • [in] uiCommandID
    命令 ID。

要求

标头: afxcolorbar.h

请参见

参考

CMFCColorBar选件类

层次结构图

COLORREF

CMFCColorBar::Create