PALETTEINDEX
The PALETTEINDEX
macro accepts an index to a logical-color palette entry and returns a
palette-entry specifier consisting of a 32-bit COLORREF
COLORREF PALETTEINDEX(
WORD wPaletteIndex |
// index to palette
entry |
); |
|
Parameters
wPaletteIndex
Specifies an
index to the palette entry containing the color to be used for a graphics
operation.
Return Values
The return
value is a logical-palette index specifier.
Remarks
The PALETTEINDEX
macro is defined as follows:
#define PALETTEINDEX(i) /
((COLORREF) (0x01000000 | (DWORD) (WORD) (i)))
See Also