wxWindowsPrinter::~wxWindowsPrinter()
{
+ // avoids mingw warning about statement with no effect (FreeProcInstance
+ // doesn't do anything under Win32)
+#ifndef __GNUWIN32__
FreeProcInstance((FARPROC) m_lpAbortProc);
+#endif
}
bool wxWindowsPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
return FALSE;
printout->SetIsPreview(FALSE);
- printout->OnPreparePrinting();
+
+ // 4/9/99, JACS: this is a silly place to allow preparation, considering
+ // the DC and no parameters have been set in the printout object.
+ // Moved further down.
+ // printout->OnPreparePrinting();
// Get some parameters from the printout, if defined
int fromPage, toPage;
// Create an abort window
wxBeginBusyCursor();
+ printout->OnPreparePrinting();
+
wxWindow *win = CreateAbortWindow(parent, printout);
wxYield();
if (!win)
{
wxEndBusyCursor();
- wxLogDebug(_T("Could not create an abort dialog."));
+ wxLogDebug(wxT("Could not create an abort dialog."));
delete dc;
}