GetSystemPaletteUse

Version 3.0

Syntax

WORD GetSystemPaletteUse(hDC)

This function determines whether an application has access to the full system palette. By default, the system palette contains 20 static colors which are not changed when an application realizes its logical palette. An application can gain access to most of these colors by calling the SetSystemPaletteUse function.

The device context identified by the hDC parameter must refer to a device that supports color palettes.

Parameter Type/Description  

hDC HDC Identifies the device context.  

Return Value

The return value specifies the current use of the system palette. It is either of the following values:

Value Meaning

SYSPAL_NOSTATIC System palette contains no static colors except black and white.
SYSPAL_STATIC System palette contains static colors which will not change when an application realizes its logical palette.