COleControl::TranslateColor

This method converts an OLE_COLOR value to a COLORREF value.

At a Glance

Header file: Afxctl.h
Platforms: H/PC 2.0, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

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

Remarks

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.

See Also

COleControl::GetForeColor, COleControl::GetBackColor, COLORREF