## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### GreSaveDC - Remarks

The following information is saved:

Current position
Current attributes
Current transforms, viewing limits, and clip path
Any reference to a selected clip window
Any loaded logical color table
References to any loaded logical fonts
References to the regions created on the associated DC

The following are not saved:

Visible region
Process controls

Any resources such as clip region and logical fonts, which are referenced in a saved DC, should not be deleted. The ID of a saved DC is only unique within the DC for which it is issued. Other DCs can have saved states with the same ID. The returned identifier can be used for a subsequent GreRestoreDC. This identifier represents the level of the saved DC on the save/restore stack. The first DC saved is identified by a value of 1, the second by 2, and so on.