This property holds the handle to the printer device context.

[Visual Basic]   imagekitcontrolname.PrintDraw.Hdc [ = LONG_PTR ]
[Visual C++]     [ LONG_PTR = ]imagekitcontrolname.GetPrintDraw().GetHdc()
[VB.NET]   imagekitcontrolname.PrintDraw.Hdc [ = Integer(x86) or Long(x64) ]
[C#.NET]   imagekitcontrolname.PrintDraw.Hdc [ = int(x86) or long(x64) ]

* (x86) refers to the 32 bit version, (x64) refers to the 64 bit version.

Reference

The printer device context

Explanation

The Hdc property holds the handle to the printer device context.

A device context is a link between a Windows-based application, a device driver, and an output device such as a display or printer. The printer device context can be retrieved by successfully executing the PrintCreateDC or PrintDialog methods. The retrieved printer device context can be freed by executing the PrintDeleteDC method (The Hdc property value will be 0 or NULL).

Setting this value

This value cannot be set.

Retrieving this value

This value can be retrieved at runtime.

Differences between the ImageKit7/8

This property's type has changed.

The ImageKit9 ActiveX is a product created by Newtone Corporation