X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8300f815fa5f0e9486d14b057ce8fdda5785549b..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/msw/wince/menuce.cpp?ds=sidebyside diff --git a/src/msw/wince/menuce.cpp b/src/msw/wince/menuce.cpp index 7f4d51c3be..707bcc9af5 100644 --- a/src/msw/wince/menuce.cpp +++ b/src/msw/wince/menuce.cpp @@ -48,6 +48,8 @@ #include "wx/msw/wince/resources.h" +#include "wx/stockitem.h" + wxTopLevelWindowMSW::ButtonMenu::ButtonMenu() { m_id = wxID_ANY; @@ -81,7 +83,10 @@ void wxTopLevelWindowMSW::ButtonMenu::SetButton(int id, const wxString& label, w { m_assigned = true; m_id = id; - m_label = label; + if(label.empty() && wxIsStockID(id)) + m_label = wxGetStockLabel(id, false); + else + m_label = label; m_menu = subMenu; }