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:
@@ -518,8 +518,27 @@ bool wxFrame::ShowFullScreen(bool show, long style)
|
|||||||
}
|
}
|
||||||
#endif // wxUSE_TOOLBAR
|
#endif // wxUSE_TOOLBAR
|
||||||
|
|
||||||
if ((m_fsStyle & wxFULLSCREEN_NOMENUBAR) && m_hMenu)
|
if (m_fsStyle & wxFULLSCREEN_NOMENUBAR)
|
||||||
::SetMenu(GetHwnd(), (HMENU)m_hMenu);
|
{
|
||||||
|
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
|
#if wxUSE_STATUSBAR
|
||||||
wxStatusBar *theStatusBar = GetStatusBar();
|
wxStatusBar *theStatusBar = GetStatusBar();
|
||||||
|
Reference in New Issue
Block a user