X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d36d8dd7d259511d949fecf0f5c33b05322e5aab..4b412d238281008e248bcdebeae4baf4b67191e7:/include/wx/menuitem.h diff --git a/include/wx/menuitem.h b/include/wx/menuitem.h index e35a5372ad..bdf8f5428f 100644 --- a/include/wx/menuitem.h +++ b/include/wx/menuitem.h @@ -82,10 +82,10 @@ public: wxMenu *GetSubMenu() const { return m_subMenu; } // state - virtual void Enable(bool enable = TRUE) { m_isEnabled = enable; } + virtual void Enable(bool enable = true) { m_isEnabled = enable; } virtual bool IsEnabled() const { return m_isEnabled; } - virtual void Check(bool check = TRUE) { m_isChecked = check; } + virtual void Check(bool check = true) { m_isChecked = check; } virtual bool IsChecked() const { return m_isChecked; } void Toggle() { Check(!m_isChecked); } @@ -122,7 +122,7 @@ public: } protected: - int m_id; // numeric id of the item >= 0 or -1 + int m_id; // numeric id of the item >= 0 or wxID_ANY or wxID_SEPARATOR wxMenu *m_parentMenu, // the menu we belong to *m_subMenu; // our sub menu or NULL wxString m_text, // label of the item @@ -155,6 +155,8 @@ private: #else // !wxUSE_BASE_CLASSES_ONLY #if defined(__WXUNIVERSAL__) #include "wx/univ/menuitem.h" +#elif defined(__WXPALMOS__) + #include "wx/palmos/menuitem.h" #elif defined(__WXMSW__) #include "wx/msw/menuitem.h" #elif defined(__WXMOTIF__)