- p_menu->Append(id, GetText(_T("label")),
- GetText(_T("help")), checkable);
- if (id != -1)
- {
- p_menu->Enable(id, GetBool(_T("enabled"), TRUE));
- if (checkable) p_menu->Check(id, GetBool(_T("checked")));
- }
+
+ wxMenuItem *mitem = new wxMenuItem(p_menu, id, GetText(_T("label")),
+ GetText(_T("help")), checkable);
+
+#if wxCHECK_VERSION(2,3,0) || defined(__WXMSW__)
+ if (HasParam(_T("bitmap")))
+ mitem->SetBitmap(GetBitmap(_T("bitmap")));
+#endif
+ p_menu->Append(mitem);
+ mitem->Enable(GetBool(_T("enabled"), TRUE));
+ if (checkable) mitem->Check(GetBool(_T("checked")));