]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcmemory.cpp
more backwards compatibility for printing
[wxWidgets.git] / src / msw / dcmemory.cpp
index d94a70b75c4df187239af394513aeb1ccd3f3f04..dd76ffcd3acbca5546bf0c4b2e6645f9704deee8 100644 (file)
@@ -21,6 +21,7 @@
 #endif
 
 #ifndef WX_PRECOMP
+#include "wx/utils.h"
 #endif
 
 #include "wx/dcmemory.h"
@@ -38,7 +39,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
 
 wxMemoryDC::wxMemoryDC(void)
 {
-  m_hDC = (WXHDC) ::CreateCompatibleDC(NULL);
+  m_hDC = (WXHDC) ::CreateCompatibleDC((HDC) NULL);
   m_ok = (m_hDC != 0);
   m_bOwnsDC = TRUE;