void AnimatePalette(hPalette,wStartIndex,wNumEntries, lpPaletteColors)
This function replaces entries in the logical palette identified by the hPalette parameter. 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.
Parameter | Type/Description |
hPalette | HPALETTE Identifies the logical palette. | |
wStartIndex | WORD Specifies the first entry in the palette to be animated. | |
Parameter | Type/Description |
wNumEntries | WORD Specifies the number of entries in the palette to be animated. | |
lpPaletteColors | LPPALETTEENTRY Points to the first member of an array of PALETTEENTRY data structures to replace the palette entries identified by wStartIndex and wNumEntries. |
None.
AnimatePalette will only change entries with the PC_RESERVED flag set in the corresponding palPaletteEntry field of the LOGPALETTE data structure that defines the current logical palette. The CreatePalette function creates a logical palette.