]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't set explicit background colour for wxStatusBar in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Nov 2010 01:23:09 +0000 (01:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Nov 2010 01:23:09 +0000 (01:23 +0000)
Setting the background colour for the status bar explicitly is unnecessary and
probably prevents it from rendering correctly with some themes. Simply remove
the call to SetBackgroundColour() from wxStatusBar::Create().

We should also define Get[Class]DefaultAttributes() in wxStatusBar in the
future.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/statusbar.cpp

index 1f3fbbb4d43b18e78f1d3e0e370bcac319dee67b..a6b42bac5a47f15e4b5655b6b3a6765b6a641695 100644 (file)
@@ -135,8 +135,6 @@ bool wxStatusBar::Create(wxWindow *parent,
     // cache the DC instance used by DoUpdateStatusText:
     m_pDC = new wxClientDC(this);
 
-    SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_MENUBAR));
-
     // we must refresh the frame size when the statusbar is created, because
     // its client area might change
     //