git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40258
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
-void wxTabMDIParentFrame::SetMenuBar(wxMenuBar *pMenuBar)
+void wxTabMDIParentFrame::SetMenuBar(wxMenuBar* pMenuBar)
{
// Remove the Window menu from the old menu bar
RemoveWindowMenu(GetMenuBar());
{
// Remove the Window menu from the old menu bar
RemoveWindowMenu(GetMenuBar());
SetMenuBar(m_pMyMenuBar);
// Make sure we know our menu bar is in use
SetMenuBar(m_pMyMenuBar);
// Make sure we know our menu bar is in use
}
else
{
if (pChild->GetMenuBar() == NULL)
return;
}
else
{
if (pChild->GetMenuBar() == NULL)
return;
// Do we need to save the current bar?
if (m_pMyMenuBar == NULL)
m_pMyMenuBar = GetMenuBar();
// Do we need to save the current bar?
if (m_pMyMenuBar == NULL)
m_pMyMenuBar = GetMenuBar();