COleControl::TranslateColor

Call this member function to convert an OLE_COLOR value to a COLORREF value.

Syntax

COLORREF TranslateColor( OLE_COLOR clrColor, HPALETTE hpal = NULL );

At a Glance

Header file: Afxctl.h
Platforms:
Versions: 2.0 and later
Complete documentation Visual C++ documentation

Remarks

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.

See Also

COleControl Overview, COleControl Member Functions, Control Classes, COleControl::GetForeColor, COleControl::GetBackColor, COLORREF