]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcscreen.cpp
joinable and detached POSIX threads (not fully tested yet)
[wxWidgets.git] / src / msw / dcscreen.cpp
index 64c6908cfd47dccc1987b05bd96b3327b8451bf4..65f897ccf38dd4fbdadd3e91c2da715272f15f70 100644 (file)
 #ifndef WX_PRECOMP
    #include "wx/string.h"
    #include "wx/window.h"
 #ifndef WX_PRECOMP
    #include "wx/string.h"
    #include "wx/window.h"
-   #include "wx/msw/private.h"
 #endif
 
 #endif
 
+#include "wx/msw/private.h"
+
 #include "wx/dcscreen.h"
 
 
 #include "wx/dcscreen.h"
 
 
@@ -38,6 +39,11 @@ wxScreenDC::wxScreenDC(void)
 {
   m_hDC = (WXHDC) ::GetDC((HWND) NULL);
   m_hDCCount ++;
 {
   m_hDC = (WXHDC) ::GetDC((HWND) NULL);
   m_hDCCount ++;
+
+  // the background mode is only used for text background
+  // and is set in DrawText() to OPAQUE as required, other-
+  // wise always TRANSPARENT, RR
+  ::SetBkMode( GetHdc(), TRANSPARENT );
 }
 
 wxScreenDC::~wxScreenDC(void)
 }
 
 wxScreenDC::~wxScreenDC(void)