hDC Property
Object List Next Object
Defined By: Printer
Description:
Represents the Handle to Device Context (hDC) that is used to draw on the Drawable. The hDC is provided by the
Windows environment.
Details:
As a method for managing the system display, the Windows environment assigns a
handle for each drawable in your application. Use the hDC property to refer to
this handle, which supplies you with a value that you can pass to Windows API
calls.
The device context provides the framework that defines the graphic modes that
affect output, and defines a group of graphic objects and their attributes. The
device context can never be accessed directly by an application. It is
accessed indirectly by calling the various associated functions.he Device Context of a
Printer is automatically kept up-to-date when setting the DrawColor,
DrawStyle, DrawMode, FillColor, FillStyle properties.
Note: Do not store the hDC property value in a variable as it can change while a
program is running. Rather, you should use the hDC property every time you need
it.
Data Type: Long (Read Only)