This method converts an OLE_COLOR value to a COLORREF value.
Header file: | Afxctl.h |
Platforms: | H/PC 2.0, H/PC Pro |
Windows CE versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
COLORREF TranslateColor( OLE_COLOR clrColor,
HPALETTE hpal = NULL );
Windows CE only supports the following OLE_COLOR types supported by the Windows-based desktop platforms:
MFC for Windows CE does not support the hPal argument. Always pass NULL for this argument.
COleControl::GetForeColor, COleControl::GetBackColor, COLORREF