CColorDialog::CColorDialog

CColorDialog( COLORREF clrInit = 0, DWORD dwFlags = 0, CWnd* pParentWnd = NULL );

Parameters

clrInit

The default color selection. If no value is specified, the default is RGB(0,0,0) (black).

dwFlags

A set of flags that customize the function and appearance of the dialog box. For more information, see the CHOOSECOLOR structure in the Win32 SDK documentation.

pParentWnd

A pointer to the dialog box’s parent or owner window.

Remarks

Constructs a CColorDialog object.

Example

// Show the Color dialog with all the default settings.
CColorDialog dlg;
dlg.DoModal();

// Show the fully opened Color dialog with red as the selected color.
CColorDialog dlg(RGB(255, 0, 0), CC_FULLOPEN);
dlg.DoModal();

CColorDialog OverviewClass MembersHierarchy Chart

See Also   CDialog::DoModal