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
This commit is contained in:
@@ -135,8 +135,6 @@ bool wxStatusBar::Create(wxWindow *parent,
|
|||||||
// cache the DC instance used by DoUpdateStatusText:
|
// cache the DC instance used by DoUpdateStatusText:
|
||||||
m_pDC = new wxClientDC(this);
|
m_pDC = new wxClientDC(this);
|
||||||
|
|
||||||
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_MENUBAR));
|
|
||||||
|
|
||||||
// we must refresh the frame size when the statusbar is created, because
|
// we must refresh the frame size when the statusbar is created, because
|
||||||
// its client area might change
|
// its client area might change
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user