Windows Mobile 6.5
A version of this page is also available for

This structure specifies the color and usage of a logical palette entry. A logical palette is defined by a LOGPALETTE structure.

typedef struct tagPALETTEENTRY {
  BYTE peRed;
  BYTE peGreen;
  BYTE peBlue;
  BYTE peFlags;


Specifies a red intensity value for the palette entry.


Specifies a green intensity value for the palette entry.


Specifies a blue intensity value for the palette entry.


Specifies how the palette entry is to be used.

The peFlags member may be set to NULL or one of the following values.

Value Description


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 display device palette.


Specifies that the color be 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.

After this color is in the system palette, colors in other logical palettes can be matched to this color.


Specifies that the logical palette entry be used for palette animation.

This flag prevents other windows from matching colors to the palette entry because 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.

Windows Embedded CE ignores the peFlags member. It should be initialized to 0.

Windows Embedded CEWindows CE 2.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions