]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tbar95.cpp
added automatic growing of in-place wxTextCtrls for generic wxListCtrl and wxTreeCtrl
[wxWidgets.git] / src / msw / tbar95.cpp
index 57dc3bd15b6b0fe09017e5cd77d61d4958c3e8d0..589df6cf6767abbdeace793076c1505e004d48db 100644 (file)
@@ -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;