Control Reference > VSPrinter Control > VSPrinter Properties > hDC Property |
Returns the control's current hDC.
val& = [form!]VSPrinter.hDC
This property is useful if you wish to call Windows API functions to draw directly into the VSPrinter's device context.
The value of the hDC property corresponds to a printer or enhanced metafile device context, depending on whether the control is drawing to the printer or to the screen (in print preview mode).
If there's no open document, the hDC property returns zero.
Note: You should only use this property if you are familiar with the Windows GDI calls. In particular, you should restore the hDC to its original state when you are done using it. If you run into problems using this property, our technical support staff probably won't be able to help you. |
Long