Important: The information in this document is obsolete and should not be used for new development.
Manipulating Palettes and Color Tables
You can use theCopyPalettefunction to copy palettes from other palettes and from color tables, and you can use theResizePalettefunction to resize palettes. TheRestoreDeviceClutfunction restores the color table of a device to its default set of colors.CTab2Palettecopies the specified color table into a palette, and its opposite,Palette2CTab, copies a palette into a color table. Each function resizes the target object as needed.