X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e63fdcd600e2eb717a19f9fa2895e9256e83c890..1be06faf7318abf88a35b299b90ceb2a49c0353b:/src/common/tbarbase.cpp diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index 526c883fcc..d904ff9194 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -53,6 +53,8 @@ END_EVENT_TABLE() #endif +IMPLEMENT_CLASS(wxToolBarBase, wxControl) + #include "wx/listimpl.cpp" WX_DEFINE_LIST(wxToolBarToolsList); @@ -530,7 +532,11 @@ void wxToolBarBase::DoToolbarUpdates() while (parent->GetParent()) parent = parent->GetParent(); +#ifdef __WXMSW__ wxWindow* focusWin = wxFindFocusDescendant(parent); +#else + wxWindow* focusWin = (wxWindow*) NULL; +#endif wxEvtHandler* evtHandler = focusWin ? focusWin->GetEventHandler() : GetEventHandler() ;