]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcclient.cpp
more backwards compatibility for printing
[wxWidgets.git] / src / msw / dcclient.cpp
index e1cd97a1ada06bf8ec37eef6bf7cb2734a342f6d..50fd1ad86e647a5dc506b00ed0cd587bc717b2f4 100644 (file)
@@ -49,6 +49,8 @@ wxWindowDC::wxWindowDC(wxWindow *the_canvas)
 //  m_hDC = (WXHDC) ::GetDCEx((HWND) the_canvas->GetHWND(), NULL, DCX_WINDOW);
   m_hDC = (WXHDC) ::GetWindowDC((HWND) the_canvas->GetHWND() );
   m_hDCCount ++;
+
+  SetBackground(wxBrush(m_canvas->GetBackgroundColour(), wxSOLID));
 }
 
 wxWindowDC::~wxWindowDC(void)
@@ -77,6 +79,8 @@ wxClientDC::wxClientDC(wxWindow *the_canvas)
   m_canvas = the_canvas;
 //  BeginDrawing();
   m_hDC = (WXHDC) ::GetDC((HWND) the_canvas->GetHWND());
+
+  SetBackground(wxBrush(m_canvas->GetBackgroundColour(), wxSOLID));
 }
 
 wxClientDC::~wxClientDC(void)
@@ -128,6 +132,8 @@ wxPaintDC::wxPaintDC(wxWindow *canvas)
     ms_PaintCount = 1;
     m_hDCCount++;
   }
+
+  SetBackground(wxBrush(m_canvas->GetBackgroundColour(), wxSOLID));
 }
 
 wxPaintDC::~wxPaintDC()