SaveDC function
The SaveDC function saves the current state of the specified device context (DC) by copying data describing selected objects and graphic modes (such as the bitmap, brush, palette, font, pen, region, drawing mode, and mapping mode) to a context stack.
Syntax
int SaveDC( __in HDC hdc );
Parameters
- hdc [in]
-
A handle to the DC whose state is to be saved.
Return value
If the function succeeds, the return value identifies the saved state.
If the function fails, the return value is zero.
Remarks
The SaveDC function can be used any number of times to save any number of instances of the DC state.
A saved state can be restored by using the RestoreDC function.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 9/7/2011
