CMFCRibbonColorButton::CMFCRibbonColorButton

Constructs and initializes a CMFCRibbonColorButton object.

CMFCRibbonColorButton();
CMFCRibbonColorButton(
   UINT nID,
   LPCTSTR lpszText,
   int nSmallImageIndex,
   COLORREF color = RGB(0, 0, 0) 
);
CMFCRibbonColorButton(
   UINT nID,
   LPCTSTR lpszText,
   BOOL bSimpleButtonLook,
   int nSmallImageIndex,
   int nLargeImageIndex,
   COLORREF color = RGB(0, 0, 0) 
);

Parameters

  • [in] nID
    Specifies the command ID of the command that is executed when a user chooses the button.

  • [in] lpszText
    Specifies the text that is to appear on the button.

  • [in] nSmallImageIndex
    The zero-based index of the small image that is to appear on the button.

  • [in] color
    Specifies the currently selected color.

  • [in] bSimpleButtonLook
    Specifies whether the button is drawn by using a simple look. A simple look does not include a preview of the currently selected color.

  • [in] nLargeImageIndex
    The zero-based index of the large image that is to appear on the button.

Requirements

Header: afxribboncolorbutton.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCRibbonColorButton Class

CMFCRibbonGallery Class

CMFCRibbonGallery::CMFCRibbonGallery