From b2b225e7779d8f06823ed6ef9181eff0baeaa2e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 23 Jun 2004 17:31:29 +0000 Subject: [PATCH] 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 --- src/msw/window.cpp | 12 ------------ 1 file changed, 12 deletions(-) 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() -- 2.50.0