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.
CDC::UpdateColors
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void UpdateColors();
 
  Remarks
 
  Updates the client area of the device context by matching the current
  colors in the client area to the system palette on a pixel-by-pixel
  basis. An inactive window with a realized logical palette may call
  UpdateColors as an alternative to redrawing its client area when the
  system palette changes.
 
  For more information on using color palettes, see the Windows Software
  Development Kit documentation.
 
  The UpdateColors member function typically updates a client area faster
  than redrawing the area. However, because the function performs the
  color translation based on the color of each pixel before the system
  palette changed, each call to this function results in the loss of some
  color accuracy.
 
  See Also
 
  CDC::RealizePalette, CPalette, ::UpdateColors
 
 
                                     -♦-