CPalette::AnimatePalette
Replaces entries in the logical palette attached to the CPalette object.
void AnimatePalette(
UINT nStartIndex,
UINT nNumEntries,
LPPALETTEENTRY lpPaletteColors
);
Parameters
nStartIndex
Specifies the first entry in the palette to be animated.nNumEntries
Specifies the number of entries in the palette to be animated.lpPaletteColors
Points to the first member of an array of PALETTEENTRY structures to replace the palette entries identified by nStartIndex and nNumEntries.
Remarks
When an application calls AnimatePalette, it does not have to update its client area, because Windows maps the new entries into the system palette immediately.
The AnimatePalette function will only change entries with the PC_RESERVED flag set in the corresponding palPaletteEntry member of the LOGPALETTE structure that is attached to the CPalette object. See LOGPALETTE in the Windows SDK for more information about this structure.
Requirements
Header: afxwin.h