Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
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
 
 
                                     -♦-