]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/menuitem.cpp
don't call SelectObject() twice in SetBrush() nor SetFont() neither
[wxWidgets.git] / src / os2 / menuitem.cpp
index ca9fc82f000815b8d7eb4fd3718b2caf30f6df38..91c6e9d975be069bbc0a1a3b04e653796c569ca9 100644 (file)
@@ -423,6 +423,9 @@ void wxMenuItem::SetText(
 
     wxMenuItemBase::SetText(sText);
     OWNER_DRAWN_ONLY(wxOwnerDrawn::SetName(sText));
+#if  wxUSE_OWNER_DRAWN
+    SetAccelString(rText.AfterFirst(_T('\t')));
+#endif // wxUSE_OWNER_DRAWN
 
     HWND                            hMenu = GetHmenuOf(m_parentMenu);