]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/wince/menuce.cpp
applying OSAF patch for "toolbar selection not correct on Mac after calling Realize...
[wxWidgets.git] / src / msw / wince / menuce.cpp
index 7f4d51c3beda14c84c4940bc1016329fe95df428..707bcc9af59cbd52ee4620a5744e2620738dfe8b 100644 (file)
@@ -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;
 }