X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6fea4cdbff650d91d64029d861ba6ad27e20578b..1c9919467b422edf561753db25605bc7aa293b55:/src/aui/auibar.cpp diff --git a/src/aui/auibar.cpp b/src/aui/auibar.cpp index c5c6d64d82..c7583b9d88 100644 --- a/src/aui/auibar.cpp +++ b/src/aui/auibar.cpp @@ -38,8 +38,6 @@ #ifdef __WXMAC__ #include "wx/osx/private.h" -// for themeing support -#include #endif #include "wx/arrimpl.cpp" @@ -849,6 +847,7 @@ wxAuiToolBar::wxAuiToolBar(wxWindow* parent, SetExtraStyle(wxWS_EX_PROCESS_IDLE); if (style & wxAUI_TB_HORZ_LAYOUT) SetToolTextOrientation(wxAUI_TBTOOL_TEXT_RIGHT); + SetBackgroundStyle(wxBG_STYLE_CUSTOM); } @@ -2187,7 +2186,7 @@ void wxAuiToolBar::OnIdle(wxIdleEvent& evt) void wxAuiToolBar::OnPaint(wxPaintEvent& WXUNUSED(evt)) { - wxBufferedPaintDC dc(this); + wxAutoBufferedPaintDC dc(this); wxRect cli_rect(wxPoint(0,0), GetClientSize());