DirectX SDK

CONST_DDPALFLAGS

The flags in the CONST_DDPALFLAGS enumeration are used by the flags member in the PALETTEENTRY type to specify how the palette entry is used.

Enum CONST_DDPALFLAGS
    PC_DEFAULT     = 0
    PC_EXPLICIT    = 2
    PC_NOCOLLAPSE  = 4
    PC_RESERVED    = 1
End Enum
PC_DEFAULT
The palette entry is to be used without modification from the flags below.
PC_EXPLICIT
The low-order word of the logical palette entry designates a hardware palette index. This flag allows the application to show the contents of the display device palette.
PC_NOCOLLAPSE
The color is placed in an unused entry in the system palette, instead of being matched to an existing color in the system palette. If there are no unused entries in the system palette, the color is matched normally. Once this color is in the system palette, colors in other logical palettes can be matched to this color.
PC_RESERVED
The logical palette entry is used for palette animation. This flag prevents other windows from matching colors to the palette entry since the color frequently changes. If an unused system-palette entry is available, the color is placed in that entry. Otherwise, the color is not available for animation.

Remarks

The type library defines the flags member of PALETTEENTRY to be a byte, rather than this enumeration; therefore, autocompletion is not enabled. The flags in this enumeration are valid for the flags member and can be specified to modify behavior.