]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcprint.cpp
1. wxWindow::IsTopLevel() added and documented
[wxWidgets.git] / src / msw / dcprint.cpp
index d304d8bbc92468424c62cbb9ee96a05ef2b34dc9..55eac864f758522f44d86ac500c7061122ed3eba 100644 (file)
 #ifndef WX_PRECOMP
 #endif
 
+#include "wx/string.h"
+#include "wx/log.h"
+#include "wx/window.h"
+#include "wx/msw/private.h"
 #include "wx/dcprint.h"
 #include "math.h"
 
-#include <windows.h>
-
 #if wxUSE_COMMON_DIALOGS
 #include <commdlg.h>
 #endif
 #include <print.h>
 #endif
 
-#ifdef DrawText
-#undef DrawText
-#endif
-
-#ifdef GetCharWidth
-#undef GetCharWidth
-#endif
-
-#ifdef StartDoc
-#undef StartDoc
-#endif
-
 #if !USE_SHARED_LIBRARY
 IMPLEMENT_CLASS(wxPrinterDC, wxDC)
 #endif
@@ -194,7 +184,7 @@ bool wxPrinterDC::StartDoc(const wxString& message)
     if (ret <= 0)
     {
         DWORD lastError = GetLastError();
-        wxDebugMsg("wxDC::StartDoc failed with error: %d\n", lastError);
+        wxLogDebug("wxDC::StartDoc failed with error: %d\n", lastError);
     }
 #endif