-class wxMenu: public wxEvtHandler
-{
- DECLARE_DYNAMIC_CLASS(wxMenu)
-
- public:
-
- wxMenu( const wxString &title = "" );
- void AppendSeparator(void);
- void Append( int id, const wxString &item,
- const wxString &helpStr = "", bool checkable = FALSE );
- void Append( int id, const wxString &item,
- wxMenu *subMenu, const wxString &helpStr = "" );
- int FindItem( const wxString itemString ) const;
- void Break(void) {};
- void Check(int id, bool Flag);
- void Enable( int id, bool enable );
- bool Enabled( int id ) const;
- void SetLabel( int id, const wxString &label );
-
- public:
-
+ wxMenu(long style = 0) : wxMenuBase(style) { Init(); }
+
+ virtual ~wxMenu();
+
+ // implement base class virtuals
+ virtual wxMenuItem* DoAppend(wxMenuItem *item);
+ virtual wxMenuItem* DoInsert(size_t pos, wxMenuItem *item);
+ virtual wxMenuItem* DoRemove(wxMenuItem *item);
+
+ // Returns the title, with mnemonics translated to wx format
+ wxString GetTitle() const;
+
+ // TODO: virtual void SetTitle(const wxString& title);
+
+ // implementation