Table Of Contents

Previous topic

PrintData

Next topic

PrintDialogData

This Page

phoenix_title PrintDialog

This class represents the print and print setup common dialogs.

You may obtain a PrinterDC device context from a successfully dismissed print dialog.


class_hierarchy Inheritance Diagram

Inheritance diagram for class PrintDialog

Inheritance diagram of PrintDialog


method_summary Methods Summary

__init__ Constructor.
GetPrintDC Returns the device context created by the print dialog, if any.
GetPrintData Returns the print data associated with the print dialog.
GetPrintDialogData Returns the print dialog data associated with the print dialog.
ShowModal Shows the dialog, returning ID_OK if the user pressed OK, and ID_CANCEL otherwise.

api Class API



class PrintDialog(Object)

This class represents the print and print setup common dialogs.

Possible constructors:

PrintDialog(parent, data=None)

PrintDialog(parent, data)

Methods



__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self, parent, data=None)

Constructor.

Pass a parent window, and optionally a pointer to a block of print data, which will be copied to the print dialog’s print data.

Parameters:



__init__ (self, parent, data)

Parameters:





GetPrintDC(self)

Returns the device context created by the print dialog, if any.

When this function has been called, the ownership of the device context is transferred to the application, so it must then be deleted explicitly.

Return type: DC


GetPrintData(self)

Returns the print data associated with the print dialog.

Return type: PrintData


GetPrintDialogData(self)

Returns the print dialog data associated with the print dialog.

Return type: PrintDialogData


ShowModal(self)

Shows the dialog, returning ID_OK if the user pressed OK, and ID_CANCEL otherwise.

After this function is called, a device context may be retrievable using GetPrintDC .

Return type:int

Properties



PrintDC

See GetPrintDC



PrintData

See GetPrintData



PrintDialogData

See GetPrintDialogData