setting the invoking window added to two other wxMenuBar manipulating methods

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-10-27 12:59:19 +00:00
parent eb9f2b7086
commit 0f4c414099

View File

@@ -791,6 +791,8 @@ wxMenu *wxMenuBar::Replace(size_t pos, wxMenu *menu, const wxString& title)
Refresh();
}
if (m_invokingWindow)
wxMenubarSetInvokingWindow( menu, m_invokingWindow );
return menuOld;
}
@@ -820,6 +822,8 @@ bool wxMenuBar::Insert(size_t pos, wxMenu *menu, const wxString& title)
}
Refresh();
}
if (m_invokingWindow)
wxMenubarSetInvokingWindow( menu, m_invokingWindow );
return TRUE;
}