Microsoft Windows CE 3.0  

mgpal Component

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.

The mgpal component supports color palettes.

Functions for Application Developers

The mgpal component includes the following functions for application developers, which are defined in the Wingdi.h header file. To import these functions, you need to link to the mgpal.lib file.

Function
CreatePalette
GetNearestColor
GetNearestPaletteIndex
GetPaletteEntries
GetSystemPaletteEntries
RealizePalette
SelectPalette
SetPaletteEntries

See Also

GWE Components