BOOL ResizePalette(hPalette,nNumEntries)
This function changes the size of the logical palette specified by the hPalette parameter to the number of entries specified by the nNumEntries parameter. If an application calls ResizePalette 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 0) and the flags for all additional entries are set to 0.
Parameter | Type/Description |
hPalette | HPALETTE Identifies the palette to be changed. | |
nNumEntries | int Specifies the number of entries in the palette after it has been resized. |
The return value specifies the outcome of the function. It is TRUE if the palette was successfully resized. Otherwise, it is FALSE.