- wxMenu( const wxString& title, const wxFunction func)
- {
- Init(title, 0, func);
- }
- wxMenu( long style )
- {
- Init( wxEmptyString, style );
- }
- wxMenu( const wxString& title = wxEmptyString, long style = 0 )
- {
- Init(title, style);
- }
-
- ~wxMenu();
-
- // title
- void SetTitle(const wxString& label);
- const wxString GetTitle() const;
-
- // menu creation
- void AppendSeparator();
- 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 = "" );
- void Append(wxMenuItem *pItem);
- void Break() { }
-
- // delete item. don't delete the wxMenu if it's a submenu
- void Delete( int id );
-
- // find item by name/id
- int FindItem( const wxString itemString ) const;
- wxMenuItem *FindItem( int id ) const;
+ // ctors & dtor
+ wxMenu(const wxString& title, long style = 0)
+ : wxMenuBase(title, style) { Init(); }