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
This commit is contained in:
Vadim Zeitlin
2008-03-02 23:28:54 +00:00
parent 211df0565b
commit 0fb0db5c95

View File

@@ -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
//