Important: The information in this document is obsolete and should not be used for new development.
PrDlgMain
To display a customized style or job dialog box for the current printer driver, use thePrDlgMainfunction.
FUNCTION PrDlgMain (hPrint: THPrint; pDlgInit: PDlgInitProcPtr): Boolean;
hPrint- A handle to a
TPrintrecord (described on page 9-41), which may be a new record or an existing one from a document.pDlgInit- A pointer to your own initialization procedure or a pointer to one of the default initialization functions (
PrStlInit, which is described in the next section, orPrJobInit, which is described on page 9-62).DESCRIPTION
You use thePrDlgMainfunction to display a style or job dialog box that your application has altered. (If you use the standard style and job dialog boxes, you do not need to callPrDlgMain; instead, you can simply call thePrStlDialogorPrJobDialogfunction, described on page 9-58 and page 9-59, respectively.)If you want to customize a style or job dialog box, first call
PrStlInit, which is described in the next section, orPrJobInit, which is described on page 9-62, to get a pointer to theTPrDlgrecord (described on page 9-47) for that dialog box. ThePrStlInitfunction returns a pointer to theTPrDlgrecord for the style dialog box of the current printer driver; thePrJobInitfunction returns a pointer to theTPrDlgrecord of the job dialog box for the current printer driver. You should supply theTPrDlgrecord for your customized dialog box with a function that handles events that the Dialog Manager doesn't handle, and with another function that handles events in the items you add to the dialog box.When
PrDlgMainreturnsTRUE, you should proceed with the requested printing operation.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for thePrDlgMainfunction are
Trap macro Selector _PrGlue $4A040894 SEE ALSO
For more information about customizing style or job dialog boxes, see "Altering the Style or Job Dialog Box" beginning on page 9-32.