#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"
#include "wx/msw/private.h"
#include <stdlib.h>
-#include <windows.h>
-#include <commdlg.h>
-// Clash with Windows header files
-#ifdef StartDoc
- #undef StartDoc
-#endif
+#include "wx/msw/private.h"
+
+#include <commdlg.h>
#ifndef __WIN32__
#include <print.h>
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;
}