Partager via


CMFCRibbonColorButton::SetColorName

Sets a new name for a specified color.

static void __stdcall SetColorName(
   COLORREF color,
   const CString& strName
);

Parameters

  • [in] color
    The RGB value of a color.

  • [in] strName
    The new name for the specified color.

Remarks

Because it calls CMFCColorBar::SetColorName, this method changes the name of the specified color in all CMFCColorBar objects in your application.

Requirements

Header: afxribboncolorbutton.h

See Also

Reference

CMFCRibbonColorButton Class

Hierarchy Chart