X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f52c3131bff35b58e62c6696db4312b90d8c2102..2b9a7d4cc2f5f55df3d83f7cf2160cf9a509a4f2:/src/univ/menu.cpp?ds=sidebyside diff --git a/src/univ/menu.cpp b/src/univ/menu.cpp index acad3b9451..8e3957ddf7 100644 --- a/src/univ/menu.cpp +++ b/src/univ/menu.cpp @@ -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()?