From 4ccbb8de5cae88b3c4e11140905691ee9e4a4a82 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 22 Nov 2010 01:23:09 +0000 Subject: [PATCH] Don't set explicit background colour for wxStatusBar in wxMSW. 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 | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/msw/statusbar.cpp b/src/msw/statusbar.cpp index 1f3fbbb4d4..a6b42bac5a 100644 --- a/src/msw/statusbar.cpp +++ b/src/msw/statusbar.cpp @@ -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 // -- 2.45.2