共用方式為


CMFCColorPickerCtrl::SetColor

Sets the current color to the specified RGB color value.

void SetColor(
   COLORREF Color 
);

Parameters

  • [in] Color
    An RGB color value.

Requirements

Header: afxcolorpickerctrl.h

See Also

Reference

CMFCColorPickerCtrl Class

Hierarchy Chart

COLORREF

CMFCColorPickerCtrl::GetColor