Compartilhar via


CMFCColorButton::UpdateColor

Called by the framework when the user selects a color from the color bar that displays when the user clicks the color button.

virtual void UpdateColor(
   COLORREF color 
);

Parameters

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

Remarks

The UpdateColor function 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 CMFCColorButton::GetColor method to retrieve the selected color.

Requirements

Header: afxcolorbutton.h

See Also

Reference

CMFCColorButton Class

Hierarchy Chart