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.
Constructs a CMFCColorBar object.
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 
);
Parameters
- [in] colors 
 An array of colors that the framework displays on the color bar control.
- [in] color 
 The initially selected color.
- [in] lpszAutoColor 
 The text label of the automatic (default) color button, or NULL.- The standard label for the automatic button is Automatic. 
- [in] lpszOtherColor 
 The text label of the other button, which displays more color choices, or NULL.- The standard label for the other button is More Colors.... 
- [in] lpszDocColors 
 The text label of the document colors button. The document colors palette lists all the colors that the document currently uses.
- [in] lstDocColors 
 A list of colors that the document currently uses.
- [in] nColumns 
 The number of columns that the array of colors has.
- [in] nRowsDockHorz 
 The number of rows that the color bar has when it is docked horizontally.
- [in] nColDockVert 
 The number of columns that the color bar has when it is docked vertically.
- [in] colorAutomatic 
 The default color that the framework applies when you click the automatic button.
- [in] nCommandID 
 The color bar control command ID.
- [in] pParentBtn 
 A pointer to a parent button.
- [in] src 
 An existing CMFCColorBar object to be copied into the new CMFCColorBar object.
- [in] uiCommandID 
 The command ID.
Requirements
Header: afxcolorbar.h