Carbon


PMGetDialogAccepted

Header: PMApplication.h Carbon status: Not Recommended

Reports to application-defined callback functions whether the user has confirmed a dialog box.

OSStatus PMGetDialogAccepted (
    PMDialog pmDialog, 
    Boolean *process
);
Parameter descriptions
pmDialog

A PMDialog object representing your customized Page Setup or Print dialog box.

process

Returns true if the user confirms the dialog box. In the case of the Page Setup dialog box, this means the user clicked the OK button; in the case of the Print dialog box, this means the user clicked the Print button. Returns false if the user clicks the Cancel button.

function result

A result code. A result code. See “Result Codes”.

SPECIAL CONSIDERATIONS

Valid within the context of a printing session while displaying your Page Setup or Print dialog box.

AVAILABILITY

Not recommended in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.

CARBON NOTES

PMGetDialogAccepted gives you access to the information formerly contained in the fDoIt field of the Printing Manager structure TPrDlg .


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)