[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
ResetDC( hDC )-> <lSuccess>
------------------------------------------------------------------------------
PARAMETER:
<hDC> Handle that identifies the printer device context to be updated
RETURNS:
<lSuccess> is TRUE if the function is successful
DESCRIPTION:
The ResetDC function updates the given device context, based on the
information in the current DEVMODE structure or supplied by the
PrinterSetUp dialog, if the printer has not already been
initialized before.
An application will typically use the ResetDC function when a window
receives a WM_DEVMODECHANGE message. ResetDC can also be used to change
the paper orientation or paper bins while printing a document.
The ResetDC function cannot be used to change the driver name, device name
or the output port. When the user changes the port connection or device
name, the application must delete the original device context and create a
new device context with the new information.
Before calling ResetDC, the application must ensure that all objects
(other than stock objects) that had been selected into the device context
have been selected out.
SOURCE:
SOURCE\WINAPI\PRINTDC.C
See Also:
GetPrintDC
PrinterSetUp
DEVMODE
Escape
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson