implemented wxMenuBar ctor taking array of menus/titles for all ports; added optional flags argument to it (patch 1162726)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-03-17 23:45:24 +00:00
parent e71693c340
commit 294ea16de3
21 changed files with 71 additions and 63 deletions

View File

@@ -1678,6 +1678,14 @@ void wxMenuBar::Init()
m_shouldShowMenu = false;
}
wxMenuBar::wxMenuBar(size_t n, wxMenu *menus[], const wxString titles[], long WXUNUSED(style))
{
Init();
for (size_t i = 0; i < n; ++i )
Append(menus[i], titles[i]);
}
void wxMenuBar::Attach(wxFrame *frame)
{
// maybe you really wanted to call Detach()?