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:
@@ -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
|
||||
//
|
||||
|
Reference in New Issue
Block a user