CreatePalette

  HPALETTE CreatePalette(lplgpl)    
  LPLOGPALETTE lplgpl; /* address of logical color-palette */

The CreatePalette function creates a logical color-palette.

Parameters

lplgpl

Points to a LOGPALETTE structure that contains information about the colors in the logical palette. The LOGPALETTE structure has the following format:

typedef struct tagLOGPALETTE { /* lgpl */

WORD palVersion;

WORD palNumEntries;

PALETTEENTRY palPalEntry[1];

} LOGPALETTE;

Return Value

The return value identifies a logical palette if the function was successful. Otherwise, it is NULL.

See Also

LOGPALETTE