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 thePrDlgMain
function.
FUNCTION PrDlgMain (hPrint: THPrint; pDlgInit: PDlgInitProcPtr): Boolean;
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.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 thePrDlgMain
function 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 thePrStlDialog
orPrJobDialog
function, 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 theTPrDlg
record (described on page 9-47) for that dialog box. ThePrStlInit
function returns a pointer to theTPrDlg
record for the style dialog box of the current printer driver; thePrJobInit
function returns a pointer to theTPrDlg
record of the job dialog box for the current printer driver. You should supply theTPrDlg
record 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
PrDlgMain
returnsTRUE
, you should proceed with the requested printing operation.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for thePrDlgMain
function 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.