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;
}
@ -867,7 +871,7 @@ bool wxMenuBar::Append(wxMenu *menu, const wxString& title)
Refresh();
}
// m_invokingWindow is set after wxFrame::SetMenuBar(). This call enables
// m_invokingWindow is set after wxFrame::SetMenuBar(). This call enables
// adding menu later on.
if (m_invokingWindow)
wxMenubarSetInvokingWindow( menu, m_invokingWindow );