ComponentOne VSView 8.0
hDC Property

Returns the control's current hDC.

Syntax

val& = [form!]VSPrinter.hDC

Remarks

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.

Data Type

Long

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback