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:
@@ -791,6 +791,8 @@ wxMenu *wxMenuBar::Replace(size_t pos, wxMenu *menu, const wxString& title)
|
|||||||
|
|
||||||
Refresh();
|
Refresh();
|
||||||
}
|
}
|
||||||
|
if (m_invokingWindow)
|
||||||
|
wxMenubarSetInvokingWindow( menu, m_invokingWindow );
|
||||||
|
|
||||||
return menuOld;
|
return menuOld;
|
||||||
}
|
}
|
||||||
@@ -820,6 +822,8 @@ bool wxMenuBar::Insert(size_t pos, wxMenu *menu, const wxString& title)
|
|||||||
}
|
}
|
||||||
Refresh();
|
Refresh();
|
||||||
}
|
}
|
||||||
|
if (m_invokingWindow)
|
||||||
|
wxMenubarSetInvokingWindow( menu, m_invokingWindow );
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
@@ -867,7 +871,7 @@ bool wxMenuBar::Append(wxMenu *menu, const wxString& title)
|
|||||||
Refresh();
|
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.
|
// adding menu later on.
|
||||||
if (m_invokingWindow)
|
if (m_invokingWindow)
|
||||||
wxMenubarSetInvokingWindow( menu, m_invokingWindow );
|
wxMenubarSetInvokingWindow( menu, m_invokingWindow );
|
||||||
|
Reference in New Issue
Block a user