Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CPalette::ResizePalette
CPalette                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL ResizePalette( UINT nNumEntries );
 
  Parameter     Description
 
  <nNumEntries> Specifies the number of entries in the palette after it
                has been resized.
 
  Remarks
 
  Changes the size of the logical palette attached to the CPalette object
  to the number of entries specified by <nNumEntries>. 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.
 
  Return Value
 
  TRUE if the palette was successfully resized; otherwise FALSE.
 
  See Also
 
  ::ResizePalette
 
 
                                     -♦-