Patch [ 1314868 ] [wxMSW] Show MDI child menubars when ShowFullScreen(false)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2005-10-23 11:05:46 +00:00
parent 3d3afaecfb
commit bc88602a65

View File

@ -518,8 +518,27 @@ bool wxFrame::ShowFullScreen(bool show, long style)
}
#endif // wxUSE_TOOLBAR
if ((m_fsStyle & wxFULLSCREEN_NOMENUBAR) && m_hMenu)
::SetMenu(GetHwnd(), (HMENU)m_hMenu);
if (m_fsStyle & wxFULLSCREEN_NOMENUBAR)
{
WXHMENU menu = m_hMenu;
#if wxUSE_MDI_ARCHITECTURE
wxMDIParentFrame *frame = wxDynamicCast(this, wxMDIParentFrame);
if (frame)
{
wxMDIChildFrame *child = frame->GetActiveChild();
if (child)
{
menu = child->GetWinMenu();
}
}
#endif // wxUSE_MDI_ARCHITECTURE
if (menu)
{
::SetMenu(GetHwnd(), (HMENU)menu);
}
}
#if wxUSE_STATUSBAR
wxStatusBar *theStatusBar = GetStatusBar();