unsigned get_system_palette_use(handle device)

This function obtains the usage of the system palette of a device context.


handle device

The handle of the device context.



The current usage of the system color palette - see enumeration palette_use.


The system color palette for a device context is its associated physical color palette.

The specified device context must be associated with a device that supports color palettes. The function get_device_capabilities with capability index capability::Raster may be used to determine if color palettes are supported (see enumerator capability_raster::palette).

By default, the system color palette contains 20 static colors that remain unchanged when an associated logical palette is realized. Access to most of these colors may be gained by calling the function set_system_palette_use.