共用方式為


CMFCColorPickerCtrl::GetColor

Retrieves the color that the user selects.

COLORREF GetColor() const;

Return Value

The RGB value of the selected color.

Requirements

Header: afxcolorpickerctrl.h

See Also

Reference

CMFCColorPickerCtrl Class

Hierarchy Chart

COLORREF

CMFCColorPickerCtrl::SetColor