CPalette::CreatePalette

Syntax

BOOL CreatePalette( LPLOGPALETTE lpLogPalette );

Parameters

lpLogPalette

Points to a LOGPALETTE structure that contains information about the colors in the logical palette.

The LOGPALETTE structure has the following form:

typedef struct tagLOGPALETTE {

WORD palVersion;

WORD palNumEntries;

PALETTEENTRY palPalEntry[1];

} LOGPALETTE;

Remarks

Initializes a CPalette object by creating a Windows logical color palette and attaching it to the CPalette object.

Return Value

TRUE if successful; otherwise FALSE.

See Also

::CreatePalette