Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CPalette::AnimatePalette
CPalette                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void AnimatePalette( UINT nStartIndex, UINT nNumEntries,
                       LPPALETTEENTRY lpPaletteColors );
 
  Parameter         Description
 
  <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 Also
 
  CPalette::CreatePalette, ::AnimatePalette
 
 
                                     -♦-