Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CDC::SaveDC

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.

virtual int SaveDC( );

An integer identifying the saved device context. It is 0 if an error occurs. This return value can be used to restore the device context by calling RestoreDC.

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.

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.