다음을 통해 공유


CPalette::ResizePalette

Changes the size of the logical palette attached to the CPalette object to the number of entries specified by nNumEntries.

BOOL ResizePalette(
   UINT nNumEntries 
);

Parameters

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

Return Value

Nonzero if the palette was successfully resized; otherwise 0.

Remarks

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.

For more information on the Windows API ResizePalette, see ResizePalette in the Windows SDK.

Requirements

Header: afxwin.h

See Also

Reference

CPalette Class

Hierarchy Chart

ResizePalette

Other Resources

CPalette Members