ResizePalette

3.0

  BOOL ResizePalette(hpal, cEntries)    
  HPALETTE hpal; /* handle of palette, */  
  UINT cEntries; /* number of palette entries after resizing */

The ResizePalette function changes the size of the given logical palette.

Parameters

hpal

Identifies the palette to be changed.

cEntries

Specifies the number of entries in the palette after it has been resized.

Return Value

The return value is nonzero if the function is successful. Otherwise, it is zero.

Comments

If an application calls the ResizePalette function to reduce the size of the palette, the entries remaining in the resized palette are unchanged. If the application calls ResizePalette to enlarge the palette, the additional palette entries are set to black (the red, green, and blue values are all zero) and the flags for all additional entries are set to zero.