]> git.saurik.com Git - wxWidgets.git/commitdiff
always draw toolbar background ourselves under XP as it isn't drawn correctly with...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Mar 2008 23:28:54 +0000 (23:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Mar 2008 23:28:54 +0000 (23:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/tbar95.cpp

index cd4f28ea225feaeb811fc643f27417a521ecb719..16ebe1ffc1e571455afdd10fc5bfc5c56fada6e5 100644 (file)
@@ -1593,7 +1593,10 @@ void wxToolBar::OnEraseBackground(wxEraseEvent& event)
 
 #endif // wxUSE_UXTHEME
 
 
 #endif // wxUSE_UXTHEME
 
-    if ( UseBgCol() || (GetMSWToolbarStyle() & TBSTYLE_TRANSPARENT) )
+    // we need to always draw our background under XP, as otherwise it doesn't
+    // appear correctly with some themes (e.g. Zune one)
+    if ( majorVersion == 5 ||
+            UseBgCol() || (GetMSWToolbarStyle() & TBSTYLE_TRANSPARENT) )
     {
         // do draw our background
         //
     {
         // do draw our background
         //