Table of contents
GDI
TOC
Collapse the table of content
Expand the table of content

Managing Palettes

Last Updated: 2/14/2017

As described in GDI Support for Graphics Drivers, GDI handles much of the palette management work. The driver must supply its default palette to GDI in the DEVINFO structure when GDI calls the function DrvEnablePDEV. At this time, the driver should create the default palette with a call to the GDI service function EngCreatePalette.

Drivers that support settable palettes also must support the DrvSetPalette function. This function is used exclusively by display drivers.

Send comments about this topic to Microsoft

© 2017 Microsoft