Compartilhar via


CColorDialog::m_cc

A structure of type CHOOSECOLOR, whose members store the characteristics and values of the dialog box.

CHOOSECOLOR m_cc;

Remarks

After constructing a CColorDialog object, you can use m_cc to set various aspects of the dialog box before calling the DoModal member function.

Example

// The code below uses CColorDialog::m_cc data member to  
// customize the settings of CColorDialog. The CColorDialog will 
// be shown as full open and with red as the selected color. 
CColorDialog dlg;
dlg.m_cc.Flags |= CC_FULLOPEN | CC_RGBINIT;
dlg.m_cc.rgbResult = RGB(255, 0, 0);
dlg.DoModal();

Requirements

Header: afxdlgs.h

See Also

Reference

CColorDialog Class

Hierarchy Chart