SaveDC

  int SaveDC(hdc)    
  HDC hdc;    

The SaveDC function saves the current state of the device context specified by hdc by copying state information (such as clipping region, selected objects, and mapping mode) to a context stack. The saved state state can later be restored by using the RestoreDC function.

Parameters

hdc

Identifies the device context to be saved.

Return Value

The return value specifies the saved device context. It is 0 if an error occurs.

Comments

The SaveDC function can be used any number of times to save any number of instances of the device context's state.

See Also

RestoreDC