Share via


CMFCRibbonColorButton::SetPalette

Sets the list of selectable colors that are displayed in the regular color area.

void SetPalette(
   CPalette* pPalette
);

Parameters

  • [in] pPalette
    Pointer to a CPalette object that contains a list of colors.

Remarks

You cannot use this method when the regular color area contains groups of colors. You can remove color groups by calling CMFCRibbonColorButton::RemoveAllColorGroups.

Requirements

Header: afxribboncolorbutton.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCRibbonColorButton Class

CPalette Class