+ // wxMenuItemBase will do stock ID checks
+ wxMenuItemBase::SetItemLabel(sText);
+
+ // m_text could now be different from 'text' if we are a stock menu item,
+ // so use only m_text below
+
+ OWNER_DRAWN_ONLY(wxOwnerDrawn::SetName(m_text));
+#if wxUSE_OWNER_DRAWN
+ if (rText.IsEmpty())
+ SetAccelString(m_text.AfterFirst(wxT('\t')));
+ else
+ SetAccelString(rText.AfterFirst(wxT('\t')));
+#endif // wxUSE_OWNER_DRAWN