CColorDialog::SetCurrentColor
Call this function after calling DoModal to force the current color selection to the color value specified in clr.
void SetCurrentColor(
COLORREF clr
);
Параметры
- clr
An RGB color value.
Заметки
This function is called from within a message handler or OnColorOK. The dialog box will automatically update the user's selection based on the value of the clr parameter.
Пример
See the example for CColorDialog::OnColorOK.
Smart Device Developer Notes
- This method is not supported in smart device projects.
Требования
Header: afxdlgs.h