X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a070d8ce248adad3c88c91588447d8fa2a2750ff..090a6d7af9c551cf34c3d50f3a438c6b42e51527:/src/common/menucmn.cpp diff --git a/src/common/menucmn.cpp b/src/common/menucmn.cpp index 1f2b9fcbb7..ee97f56614 100644 --- a/src/common/menucmn.cpp +++ b/src/common/menucmn.cpp @@ -55,6 +55,25 @@ WX_DEFINE_LIST(wxMenuItemList); // wxMenuItem // ---------------------------------------------------------------------------- +wxMenuItemBase::wxMenuItemBase(wxMenu *parentMenu, + int id, + const wxString& text, + const wxString& help, + wxItemKind kind, + wxMenu *subMenu) + : m_text(text), + m_help(help) +{ + wxASSERT_MSG( parentMenu != NULL, wxT("menuitem should have a menu") ); + + m_parentMenu = parentMenu; + m_subMenu = subMenu; + m_isEnabled = TRUE; + m_isChecked = FALSE; + m_id = id; + m_kind = kind; +} + wxMenuItemBase::~wxMenuItemBase() { delete m_subMenu;