对话框 颜色对话框 MFC中提供了CColorDialog类封装了颜色对话框的所有操作。 CColorDialog(COLORREF clrInit = 0, DWORD dwFlags = 0, CWnd* pParentWnd = NULL); clrInit是默认颜色值。 dwFlags:自定义颜色对话框功能和外观的属性值。 pParentWnd:颜色会话框的父窗口的指针。