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::SaveDC
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int SaveDC() const;
 
  Remarks
 
  Saves the current state of the device context by copying state
  information (such as clipping region, selected objects, and mapping
  mode) to a context stack maintained by Windows. The saved device context
  can later be restored by using RestoreDC.
 
  SaveDC can be used any number of times to save any number of
  device-context states.
 
  Return Value
 
  Specifies the saved device context. It is 0 if an error occurs. This
  return value is used on a subsequent call to RestoreDC to restore the
  device context state.
 
  See Also
 
  CDC::RestoreDC, ::SaveDC
 
 
                                     -♦-