Microsoft Windows CE 3.0  

COLORREF

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This value is a 32-bit value used to specify an RGB color.

typedef
DWORDCOLORREF
;
typedef
DWORD
*LPCOLORREF
;

Remarks

When specifying an explicit RGB color, the COLORREFvalue has the following hexadecimal form.

0x00bbggrr

The low-order byte contains a value for the relative intensity of red, the second byte contains a value for green, and the third byte contains a value for blue. The high-order byte must be zero. The maximum value for a single byte is 0xFF.

To create a COLORREFcolor value, use the RGBmacro. To extract the individual values for the red, green, and blue components of a color value, use the GetRValue, GetGValue, and GetBValuemacros, respectively.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Windef.h    
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

GetBValue, GetGValue, GetRValue, RGB, SetBkColor