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
This commit is contained in:
Václav Slavík
2004-06-23 17:31:29 +00:00
parent 9a8477e134
commit b2b225e777

View 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()