int = SaveDC()

Saves the current state of the device context. Windows manages a stack of state information. The saved device context can later be restored by using CDC::RestoreDC

MFC References


Return Value

An integer identifying the context, which can be used by PyCDC::RestoreDC. An exception is raised if this function fails.