共用方式為


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
    Document Color 按鈕的文字標籤。 文件色彩的色板列出文件目前使用的色彩。

  • [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