]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcscreen.cpp
Unicode fix.
[wxWidgets.git] / src / msw / dcscreen.cpp
index 71d61dd7d9aa1b3f9e0d390f07116806014a55a1..64c6908cfd47dccc1987b05bd96b3327b8451bf4 100644 (file)
 #endif
 
 #ifndef WX_PRECOMP
 #endif
 
 #ifndef WX_PRECOMP
+   #include "wx/string.h"
+   #include "wx/window.h"
+   #include "wx/msw/private.h"
 #endif
 
 #include "wx/dcscreen.h"
 
 #endif
 
 #include "wx/dcscreen.h"
 
-#include <windows.h>
 
 #if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
 
 #if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
@@ -34,14 +36,14 @@ IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
 // Create a DC representing the whole screen
 wxScreenDC::wxScreenDC(void)
 {
 // Create a DC representing the whole screen
 wxScreenDC::wxScreenDC(void)
 {
-  m_hDC = (WXHDC) ::GetDC(NULL);
+  m_hDC = (WXHDC) ::GetDC((HWND) NULL);
   m_hDCCount ++;
 }
 
 wxScreenDC::~wxScreenDC(void)
 {
   SelectOldObjects(m_hDC);
   m_hDCCount ++;
 }
 
 wxScreenDC::~wxScreenDC(void)
 {
   SelectOldObjects(m_hDC);
-  ::ReleaseDC(NULL, (HDC) m_hDC);
+  ::ReleaseDC((HWND) NULL, (HDC) m_hDC);
   m_hDC = 0;
   m_hDCCount --;
 }
   m_hDC = 0;
   m_hDCCount --;
 }