// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "menuce"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#include "wx/menu.h"
#endif //WX_PRECOMP
-#ifdef __SMARTPHONE__
+#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
#include <windows.h>
#include <ole2.h>
#include "wx/msw/wince/resources.h"
+#include "wx/stockitem.h"
+
wxTopLevelWindowMSW::ButtonMenu::ButtonMenu()
{
m_id = wxID_ANY;
{
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;
}
return false;
}
-#endif // __SMARTPHONE__
+#endif // __SMARTPHONE__ && __WXWINCE__