From: Vadim Zeitlin Date: Sun, 2 Mar 2008 23:28:54 +0000 (+0000) Subject: always draw toolbar background ourselves under XP as it isn't drawn correctly with... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0fb0db5c95bb671881282fa21f7f179d3b42aea7?ds=inline always draw toolbar background ourselves under XP as it isn't drawn correctly with some themes (e.g. Zune one) otherwise (replaces patch 1783181) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index cd4f28ea22..16ebe1ffc1 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -1593,7 +1593,10 @@ void wxToolBar::OnEraseBackground(wxEraseEvent& event) #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 //