From: Václav Slavík Date: Wed, 23 Jun 2004 17:31:29 +0000 (+0000) Subject: default colours are not stored in m_fore/backgroundColour variables anymore X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b2b225e7779d8f06823ed6ef9181eff0baeaa2e1?ds=inline default colours are not stored in m_fore/backgroundColour variables anymore git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 998b15822d..d7eb2be6f5 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -3928,18 +3928,6 @@ void wxWindowMSW::OnSysColourChanged(wxSysColourChangedEvent& WXUNUSED(event)) node = node->GetNext(); } - - // update the colours we use if they were not set explicitly by the user: - // this must be done or OnCtlColor() would continue to use the old colours - if ( !m_hasFgCol || !m_hasBgCol ) - { - wxVisualAttributes attrs = GetDefaultAttributes(); - if ( !m_hasFgCol ) - m_foregroundColour = attrs.colFg; - - if ( !m_hasBgCol ) - m_backgroundColour = attrs.colBg; - } } extern wxCOLORMAP *wxGetStdColourMap()