Call this member function to convert an OLE_COLOR value to a COLORREF value.
COLORREF TranslateColor( OLE_COLOR clrColor, HPALETTE hpal = NULL );
Header file: | Afxctl.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation | Visual C++ documentation |
Windows CE only supports the following two of the eight OLE_COLOR types supported by the desktop Windows platforms.
MFC for Windows CE does not support the hPal argument. Always pass NULL for this argument.
COleControl Overview, COleControl Member Functions, Control Classes, COleControl::GetForeColor, COleControl::GetBackColor, COLORREF