Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 9 - Printing Manager / Printing Manager Reference
Printing Manager Routines / Displaying and Customizing the Print Dialog Boxes


PrJobInit

To initialize a TPrDlg record for a customized job dialog box, use the PrJobInit function.

FUNCTION PrJobInit (hPrint: THPrint): TPPrDlg;
hPrint
A handle to a TPrint record (described on page 9-41), which may be a new record or an existing one from a document.
DESCRIPTION
The PrJobInit function returns a pointer to a TPrDlg record (described on page 9-47) for the job dialog box defined in the resource file for the current printer driver. As described in "Altering the Style or Job Dialog Box" beginning on page 9-32, you can then alter the dialog box by adding your own items. You must use the PrDlgMain function (described on page 9-60) to display the dialog box.

You need to use PrJobInit only if you are customizing the job dialog box provided by the printer driver. To initialize and display the default job dialog box, use the PrJobDialog function, which is described on page 9-59.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the PrJobInit function are
Trap macroSelector
_PrGlue$44040410

SEE ALSO
Listing 9-7 on page 9-34 illustrates how to use PrJobInit when customizing the job dialog box.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996