X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ffecfa5aeb540b54914739dbb8603edbbd4c00a0..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/include/wx/menu.h diff --git a/include/wx/menu.h b/include/wx/menu.h index 79dd28ef61..6e1e91a5ad 100644 --- a/include/wx/menu.h +++ b/include/wx/menu.h @@ -450,6 +450,7 @@ public: void Check(int itemid, bool check); bool IsChecked(int itemid) const; bool IsEnabled(int itemid) const; + virtual bool IsEnabled() const { return wxWindow::IsEnabled(); } void SetLabel(int itemid, const wxString &label); wxString GetLabel(int itemid) const; @@ -498,7 +499,7 @@ protected: #else // !wxUSE_BASE_CLASSES_ONLY #if defined(__WXUNIVERSAL__) #include "wx/univ/menu.h" -#elif defined(__PALMOS__) +#elif defined(__WXPALMOS__) #include "wx/palmos/menu.h" #elif defined(__WXMSW__) #include "wx/msw/menu.h"