X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e306597309a120f2ae91385c731a5cb2722c52aa..7d532b0ceb43aaa235ba4e814599214bb905ccc9:/src/msw/dc.cpp diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index 45e37fc9a2..970a074492 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -808,7 +808,14 @@ void wxDC::SetBackground(const wxBrush& brush) } else { - m_canvas->SetBackgroundColour(m_backgroundBrush.GetColour()); + // New behaviour, 10/2/99: setting the background brush of a DC + // doesn't affect the window background colour. However, + // I'm leaving in the transparency setting because it's needed by + // various controls (e.g. wxStaticText) to determine whether to draw + // transparently or not. TODO: maybe this should be a new function + // wxWindow::SetTransparency(). Should that apply to the child itself, or the + // parent? +// m_canvas->SetBackgroundColour(m_backgroundBrush.GetColour()); m_canvas->m_backgroundTransparent = FALSE; } }