Applied frame.cpp part of [ 606958 ] Mac Menubar proposal
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -231,6 +231,12 @@ void wxFrame::OnActivate(wxActivateEvent& event)
|
|||||||
{
|
{
|
||||||
m_frameMenuBar->MacInstallMenuBar() ;
|
m_frameMenuBar->MacInstallMenuBar() ;
|
||||||
}
|
}
|
||||||
|
else if (wxTheApp->GetTopWindow() && wxTheApp->GetTopWindow()->IsKindOf(CLASSINFO(wxFrame)))
|
||||||
|
{
|
||||||
|
// Trying toplevel frame menbar
|
||||||
|
if( ((wxFrame*)wxTheApp->GetTopWindow())->GetMenuBar() )
|
||||||
|
((wxFrame*)wxTheApp->GetTopWindow())->GetMenuBar()->MacInstallMenuBar();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -231,6 +231,12 @@ void wxFrame::OnActivate(wxActivateEvent& event)
|
|||||||
{
|
{
|
||||||
m_frameMenuBar->MacInstallMenuBar() ;
|
m_frameMenuBar->MacInstallMenuBar() ;
|
||||||
}
|
}
|
||||||
|
else if (wxTheApp->GetTopWindow() && wxTheApp->GetTopWindow()->IsKindOf(CLASSINFO(wxFrame)))
|
||||||
|
{
|
||||||
|
// Trying toplevel frame menbar
|
||||||
|
if( ((wxFrame*)wxTheApp->GetTopWindow())->GetMenuBar() )
|
||||||
|
((wxFrame*)wxTheApp->GetTopWindow())->GetMenuBar()->MacInstallMenuBar();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user