X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/525454303e200c514b6c1078284b86fb73572852..39a18da1a8090ea49c224bd5319f452d86e69100:/src/msw/frame.cpp diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index f61c8f5f0c..65b40d01f5 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -432,8 +432,12 @@ void wxFrame::InternalSetMenuBar() // Responds to colour changes, and passes event on to children. void wxFrame::OnSysColourChanged(wxSysColourChangedEvent& event) { - SetOwnBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE)); - Refresh(); + // Don't override the colour explicitly set by the user, if any. + if ( !UseBgCol() ) + { + SetOwnBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE)); + Refresh(); + } #if wxUSE_STATUSBAR if ( m_frameStatusBar )