Share via


CMFCRibbonColorButton::CMFCRibbonColorButton

Constructs 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 to execute when a user clicks the button.

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

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

  • [in] color
    The color of the button (defaults to black).

  • [in] bSimpleButtonLook
    If TRUE, the button is drawn as a simple rectangle.

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

Requirements

Header: afxribboncolorbutton.h

See Also

Reference

CMFCRibbonColorButton Class

Hierarchy Chart