PtrDevice:CreatePrinterIC() Method
<< Click to Display Table of Contents >> PtrDevice:CreatePrinterIC() Method |
![]() ![]() ![]() |
Purpose
To create a printer information context for use with Windows functions.
Syntax
<oPtrDevice>:CreatePrinterIC() → hIC (16-bit: WORD; 32-bit: PTR)
Description
This method creates a printer information context based on information contained in the PtrDevice internal structures. Use this function only when you need a printer information context.
You are responsible for calling the Windows function DeleteDC(hIC) when you are finished with this information context.
Example
// Create a printer information context
hDC := oPtrDevice:CreatePrinterIC()
... // go something with it
DeleteDC(hDC)