#include "wx/wxprec.h"
+#if wxUSE_MENUS
+
#include "wx/menuitem.h"
#include "wx/stockitem.h"
}
wxAcceleratorEntry *entry = wxAcceleratorEntry::Create( m_text ) ;
- m_peer = wxMenuItemImpl::Create( this, pParentMenu, id, text, entry, strHelp, kind, pSubMenu );
+ // use accessors for ID and Kind because they might have been changed in the base constructor
+ m_peer = wxMenuItemImpl::Create( this, pParentMenu, GetId(), text, entry, strHelp, GetKind(), pSubMenu );
delete entry;
}
const wxMenuItemList& items = m_parentMenu->GetMenuItems();
int pos = items.IndexOf(this);
wxCHECK_RET( pos != wxNOT_FOUND,
- _T("menuitem not found in the menu items list?") );
+ wxT("menuitem not found in the menu items list?") );
// get the radio group range
int start, end;
{
return new wxMenuItem(parentMenu, id, name, help, kind, subMenu);
}
+
+#endif