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 / Initializing and Validating TPrint Records


PrintDefault

When you create a TPrint record, you use the PrintDefault procedure to initialize the fields of the TPrint record according to the current printer's default values for resolution, number of copies, and so on.

PROCEDURE PrintDefault (hPrint: THPrint);
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 default values for the current printer are stored in the printer driver's resource file. The PrintDefault procedure puts these values in the TPrint record, replacing the ones that may already be there. The PrintDefault procedure calls the PrValidate function (described in the next section) to ensure that the TPrint record is compatible with the current version of the printer driver.

SPECIAL CONSIDERATIONS
You should never call PrintDefault between the pages of a document.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the PrintDefault procedure are
Trap macroSelector
_PrGlue$20040480

SEE ALSO
See "The TPrint Record and the Printing Loop" on page 9-10 and see page 9-41 for information on the TPrint record. For an example of the use of PrintDefault, see Listing 9-7 on page 9-34.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996