hDC Property
Object List Next Object
Defined By: GLControl
Description:
Specify a Handle Device Context (hDC) of a GLControl. 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 GLControl 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.
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