Carbon


PMPrintDialogInitWithPageFormat

Header: PMApplication.h Carbon status: Under Evaluation

Initializes a custom Print dialog box.

OSStatus PMPrintDialogInitWithPageFormat (
    PMPrintSettings printSettings, 
    PMPageFormat constPageFormat, 
    PMDialog *newDialog
);
Parameter descriptions
printSettings

A PMPrintSettings object.

constPageFormat

A PMPageFormat object.

newDialog

On return, a pointer to an initialized PMDialog object, ready for customization by your application. Because the PMPrintDialogMain function does not include a parameter for passing this PMDialog object to your dialog initialization callback function, your application should store this pointer in a global variable or as extended data in the PMPrintSettings object. See the discussion of the PMPrintDialogInitProcPtr callback function for more information.

function result

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

DISCUSSION

PMSessionPrintDialogInit is recommended instead of PMPrintDialogInitWithPageFormat.

SPECIAL CONSIDERATIONS

Valid after calling PMBegin and creating a page format and print settings object.

AVAILABILITY

Under evaluation for Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


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