Compartilhar via


CMFCColorBar::OpenColorDialog

Opens a color dialog box.

virtual BOOL OpenColorDialog(
   const COLORREF colorDefault,
   COLORREF& colorRes 
);

Parameters

  • [in] colorDefault
    The color that is selected by default when the color dialog box opens.

  • [out] colorRes
    The color that a user selected.

Return Value

TRUE if the user selected a color; FALSE if the user canceled the color dialog box.

Requirements

Header: afxcolorbar.h

See Also

Reference

CMFCColorBar Class

Hierarchy Chart

COLORREF

CMFCColorBar::EnableOtherButton