Contents Up Previous Next

wxPrintDialog: wxDialogBox

Overview

This class represents the print and print setup common dialogs. You may obtain a wxPrinterDC device context from a successfully dismissed print dialog.

wxPrintDialog::wxPrintDialog
wxPrintDialog::~wxPrintDialog
wxPrintDialog::GetPrintData
wxPrintDialog::GetPrintDC
wxPrintDialog::Show


wxPrintDialog::wxPrintDialog

void wxPrintDialog(wxWindow *parent, wxPrintData *data = NULL)

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.


wxPrintDialog::~wxPrintDialog

void ~wxPrintDialog(void)

Destructor. If wxPrintDialog::GetPrintDC has not been called, the device context obtained by the dialog (if any) will be deleted.


wxPrintDialog::GetPrintData

wxPrintData& GetPrintData(void)

Returns the print data associated with the print dialog.


wxPrintDialog::GetPrintDC

wxDC * GetPrintDC(void)

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.


wxPrintDialog::Show

Bool Show(Bool flag)

Shows the dialog, returning TRUE if the user pressed Ok, and FALSE otherwise. After this function is called, a device context may be retrievable using wxPrintDialog::GetDC.