Share via


CMFCRibbonColorButton::UpdateColor

Called by the framework when the user selects a color from the color table displayed when the user clicks the color button.

void UpdateColor(
   COLORREF color
);

Parameters

  • [in] color
    A color selected by the user.

Remarks

The CMFCRibbonColorButton::UpdateColor method changes the currently selected button's color and notifies its parent by sending a WM_COMMAND message with a BN_CLICKED standard notification. Use the CMFCRibbonColorButton::GetColor method to retrieve the selected color.

Requirements

Header: afxribboncolorbutton.h

See Also

Reference

CMFCRibbonColorButton Class

Hierarchy Chart