]> git.saurik.com Git - wxWidgets.git/commitdiff
default colours are not stored in m_fore/backgroundColour variables anymore
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 23 Jun 2004 17:31:29 +0000 (17:31 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 23 Jun 2004 17:31:29 +0000 (17:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 998b15822d2274f6d47e820ca5ee2928288dbcac..d7eb2be6f5502a7df3e37bd683fae8790770a63c 100644 (file)
@@ -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()