X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e63fdcd600e2eb717a19f9fa2895e9256e83c890..c13cace12594b37706e9520a6fbd602c949f8127:/src/msw/tbar95.cpp diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index 57dc3bd15b..589df6cf67 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -115,7 +115,7 @@ static void wxMapBitmap(HBITMAP hBitmap, int width, int height); // wxWin macros // ---------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxControl) +IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxToolBarBase) BEGIN_EVENT_TABLE(wxToolBar, wxToolBarBase) EVT_MOUSE_EVENTS(wxToolBar::OnMouseEvent) @@ -205,9 +205,6 @@ bool wxToolBar::Create(wxWindow *parent, long style, const wxString& name) { - // Don't want to grab the focus when we left click - SetExtraStyle(GetExtraStyle() | wxWS_EX_NO_AUTOFOCUS); - // common initialisation if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) ) return FALSE;