CPalette::AnimatePalette

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

Replaces entries in the logical palette attached to the CPalette object. 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 Win32 SDK Programmer’s Reference for more information about this structure.

CPalette OverviewClass MembersHierarchy Chart

See Also   CPalette::CreatePalette, ::AnimatePalette