BOOL CreatePalette( LPLOGPALETTE lpLogPalette );
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;
Initializes a CPalette object by creating a Windows logical color palette and attaching it to the CPalette object.
TRUE if successful; otherwise FALSE.
::CreatePalette