PALETTEENTRY

3.0

typedef struct tagPALETTEENTRY {    /* pe */
    BYTE  peRed;
    BYTE  peGreen;
    BYTE  peBlue;
    BYTE  peFlags;
} PALETTEENTRY;

The PALETTEENTRY structure specifies the color and usage of an entry in a logical color palette. A logical palette is defined by a LOGPALETTE structure.

Members

peRed

Specifies the intensity of red for the palette entry color.

peGreen

Specifies the intensity of green for the palette entry color.

peBlue

Specifies the intensity of blue for the palette entry color.

peFlags

Specifies how the palette entry is to be used. The peFlags member may be set to NULL or to one of the following values (specifying NULL informs Windows that the palette entry contains an RGB value and that it should be mapped normally):

Value Meaning

PC_EXPLICIT Specifies that 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 palette for the display device.
PC_NOCOLLAPSE Specifies that the color will be placed in an unused entry in the system palette instead of being matched to an existing color in the system palette. Once this color is in the system palette, colors in other logical palettes can be matched to this color. If there are no unused entries in the system palette, the color is matched normally.
PC_RESERVED Specifies that the logical palette entry will be used for palette animation. Because the color will frequently change, using this flag prevents other windows from matching colors to this palette entry. If an unused system-palette entry is available, this color is placed in that entry. Otherwise, the color will not be available for animation.

See Also

AnimatePalette