Removed wxFindFocusDescendant for non-wxMSW platforms.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fb20fa43a0
commit
f0e9f0d3ff
@ -427,8 +427,11 @@ void wxFrameBase::DoMenuUpdates()
|
||||
{
|
||||
wxMenuBar* bar = GetMenuBar();
|
||||
|
||||
#ifdef __WXMSW__
|
||||
wxWindow* focusWin = wxFindFocusDescendant((wxWindow*) this);
|
||||
|
||||
#else
|
||||
wxWindow* focusWin = (wxWindow*) NULL;
|
||||
#endif
|
||||
if ( bar != NULL )
|
||||
{
|
||||
int nCount = bar->GetMenuCount();
|
||||
|
@ -530,7 +530,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() ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user