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:
@@ -427,8 +427,11 @@ void wxFrameBase::DoMenuUpdates()
|
|||||||
{
|
{
|
||||||
wxMenuBar* bar = GetMenuBar();
|
wxMenuBar* bar = GetMenuBar();
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
wxWindow* focusWin = wxFindFocusDescendant((wxWindow*) this);
|
wxWindow* focusWin = wxFindFocusDescendant((wxWindow*) this);
|
||||||
|
#else
|
||||||
|
wxWindow* focusWin = (wxWindow*) NULL;
|
||||||
|
#endif
|
||||||
if ( bar != NULL )
|
if ( bar != NULL )
|
||||||
{
|
{
|
||||||
int nCount = bar->GetMenuCount();
|
int nCount = bar->GetMenuCount();
|
||||||
|
@@ -530,7 +530,11 @@ void wxToolBarBase::DoToolbarUpdates()
|
|||||||
while (parent->GetParent())
|
while (parent->GetParent())
|
||||||
parent = parent->GetParent();
|
parent = parent->GetParent();
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
wxWindow* focusWin = wxFindFocusDescendant(parent);
|
wxWindow* focusWin = wxFindFocusDescendant(parent);
|
||||||
|
#else
|
||||||
|
wxWindow* focusWin = (wxWindow*) NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
wxEvtHandler* evtHandler = focusWin ? focusWin->GetEventHandler() : GetEventHandler() ;
|
wxEvtHandler* evtHandler = focusWin ? focusWin->GetEventHandler() : GetEventHandler() ;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user