Don't force themed background for wxToolBar under MSW, just use the default.

Native toolbars don't have themed background under Vista/7 and don't look good
with rebar background (which is the same one as used for the menus) as
toolbars don't appear on the top of the window.

Erasing background ourselves also results in flicker and display problems and
makes the code much more complicated. Simply don't do this to avoid all the
problems.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-12-18 20:49:15 +00:00
parent 3b9ba64cce
commit b93051ef46
2 changed files with 9 additions and 119 deletions

View File

@@ -67,7 +67,6 @@ public:
void OnMouseEvent(wxMouseEvent& event);
void OnSysColourChanged(wxSysColourChangedEvent& event);
void OnEraseBackground(wxEraseEvent& event);
void SetFocus() {}
@@ -157,12 +156,11 @@ private:
// have
void UpdateStretchableSpacersSize();
// redraw the background of the given part of the window (or entire window
// if the parameter is NULL) to erase separator drawn in it
//
// return true if the background was erased using DrawThemeBackground()
bool MSWEraseRect(wxDC& dc, const wxRect *rectItem = NULL);
#ifndef __WXWINCE__
// redraw the background of the given part of the window to erase separator
// drawn in it
void MSWEraseRect(wxDC& dc, const wxRect& rectItem);
#endif // !__WXWINCE__
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxToolBar)