X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a5b1be33b7c93a69932d080fd544176bd9220615..68893d580363f62c7579cade2d9ee8f954eaf309:/src/msw/combo.cpp diff --git a/src/msw/combo.cpp b/src/msw/combo.cpp index 733e068430..3cbae3b335 100644 --- a/src/msw/combo.cpp +++ b/src/msw/combo.cpp @@ -221,31 +221,6 @@ wxComboCtrl::~wxComboCtrl() { } -void wxComboCtrl::OnThemeChange() -{ - // there doesn't seem to be any way to get the text colour using themes - // API: TMT_TEXTCOLOR doesn't work neither for EDIT nor COMBOBOX - if ( !m_hasFgCol ) - { - wxColour fgCol = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT); - SetForegroundColour(fgCol); - m_hasFgCol = false; - } - - // NB: use EDIT, not COMBOBOX (the latter works in XP but not Vista) - wxColour bgCol = MSWGetThemeColour(L"EDIT", - EP_EDITTEXT, - ETS_NORMAL, - ThemeColourBackground, - wxSYS_COLOUR_WINDOW); - - if ( !m_hasBgCol ) - { - SetBackgroundColour(bgCol); - m_hasBgCol = false; - } -} - void wxComboCtrl::OnResize() { //