#include "wx/defs.h"
#ifndef WX_PRECOMP
+ #include "wx/window.h"
+ #include "wx/msw/private.h"
#include "wx/utils.h"
#include "wx/dc.h"
#include "wx/app.h"
#include "wx/msgdlg.h"
+ #include "wx/intl.h"
#endif
#include "wx/msw/printwin.h"
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 defined(__BORLANDC__) || defined(__GNUWIN32__) || defined(__SALFORDC__) || !defined(__WIN32__)
+#ifdef STRICT
+ ::SetAbortProc((HDC) dc->GetHDC(), (ABORTPROC) m_lpAbortProc);
+#else
::SetAbortProc((HDC) dc->GetHDC(), (FARPROC) m_lpAbortProc);
+#endif
#else
::SetAbortProc((HDC) dc->GetHDC(), (int (_stdcall *)
// cast it to right type only if required
if (!win)
{
wxEndBusyCursor();
- wxLogDebug("Could not create an abort dialog.");
+ wxLogDebug(_T("Could not create an abort dialog."));
delete dc;
}