The AnimatePalette function replaces entries in the specified logical palette.
BOOL AnimatePalette(
HPALETTE hpal, // handle to logical color palette
UINT iStartIndex, // first entry in logical palette
UINT cEntries, // count of entries in logical palette
CONST PALETTEENTRY *ppe // pointer to first replacement
);
An application creates a reserved entry in a logical palette by setting the peFlags member of the PALETTEENTRY structure to the PC_RESERVED flag.
Once this logical palette is selected and realized, the application can call the AnimatePalette function to change one or more reserved entries.
If the given palette is associated with the active window, Windows updates the colors on the screen immediately.
Partager