#include "wx/msgdlg.h"
#endif
+#include "wx/mac/private.h"
+
#include "wx/mac/printmac.h"
#include "wx/dcprint.h"
#include "wx/printdlg.h"
// Create an abort window
wxBeginBusyCursor();
-/*
wxWindow *win = CreateAbortWindow(parent, printout);
wxYield();
wxEndBusyCursor();
wxMessageBox("Sorry, could not create an abort dialog.", "Print Error", wxOK, parent);
delete dc;
+ return FALSE;
}
sm_abortWindow = win;
sm_abortWindow->Show(TRUE);
wxYield();
-*/
printout->OnBeginPrinting();
}
else
{
+ GrafPtr thePort ;
+ GetPort( &thePort ) ;
+ wxYield() ;
+ SetPort( thePort ) ;
+
dc->StartPage();
keepGoing = printout->OnPrintPage(pn);
dc->EndPage();