]> git.saurik.com Git - wxWidgets.git/commitdiff
removed the "Silver theme fix" which made the controls in the toolbars invisible
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Dec 2007 17:28:09 +0000 (17:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Dec 2007 17:28:09 +0000 (17:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/tbar95.cpp

index f8a827fbcf5669d4726ce62bd8f0fd01fef934aa..21ab3d581f57d818c867407bfaf675744d9337c2 100644 (file)
@@ -309,13 +309,6 @@ bool wxToolBar::MSWCreateToolbar(const wxPoint& pos, const wxSize& size)
         ::SendMessage(GetHwnd(), TB_SETEXTENDEDSTYLE, 0, TBSTYLE_EX_DRAWDDARROWS);
 #endif
 
         ::SendMessage(GetHwnd(), TB_SETEXTENDEDSTYLE, 0, TBSTYLE_EX_DRAWDDARROWS);
 #endif
 
-    // Fix a bug on e.g. the Silver theme on WinXP where control backgrounds
-    // are incorrectly drawn, by forcing the background to a specific colour.
-    int majorVersion, minorVersion;
-    wxGetOsVersion(& majorVersion, & minorVersion);
-    if (majorVersion < 6)
-        SetBackgroundColour(GetBackgroundColour());
-
     return true;
 }
 
     return true;
 }