X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/454968101428f2c2b3d836c1132572d3ef2708d9..f81bd28859d95c2a8f8b6ec71885f8770b5e5e1a:/src/aui/auibar.cpp?ds=inline diff --git a/src/aui/auibar.cpp b/src/aui/auibar.cpp index e59d0e97c7..1c77b59386 100644 --- a/src/aui/auibar.cpp +++ b/src/aui/auibar.cpp @@ -849,6 +849,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 +2188,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()); @@ -2453,6 +2454,7 @@ void wxAuiToolBar::OnLeftUp(wxMouseEvent& evt) wxCommandEvent e(wxEVT_COMMAND_MENU_SELECTED, m_action_item->id); e.SetEventObject(this); + e.SetInt (toggle); GetEventHandler()->ProcessEvent(e); DoIdleUpdate(); }