This method retrieves the handle to the pointer of the printer's DEVMODE and DEVNAMES structures. These structures store information about various settings and properties of a device, such as a printer.

[C++Builder]   [ bool = ]imagekitcontrolname->PrintDraw->GetDevModeHandle()
[Delphi]   [ Boolean = ]imagekitcontrolname.PrintDraw.GetDevModeHandle()

Parameters

None

Return Value

Returns True when successful, returns False when not successful.

Explanation

The GetDevModeHandle method retrieves the handle to the pointer of the printer's DEVMODE and DEVNAMES structures. These structures store information about various settings and properties of a device, such as a printer.

If successful, the DevMode property is set to the handle of the pointer to the DEVMODE structure, and the DevNames property is set to the handle of the pointer to the DEVNAMES structure.

The DevMode property and DevNames property are used by the PrintCreateDC method and so on. For the DEVMODE structure and DEVNAMES structure, please refer to the Windows API.

Note: The handle to the pointer of the DEVMODE structure is freed using the ReleaseDevModeHandle method.

 

The ImageKit10 VCL is a product created by Newtone Corporation