Added wxMenu::Delete() and fixed some menu deleted memory
leaks. Some. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -128,11 +128,11 @@ public:
|
||||
|
||||
~wxMenu();
|
||||
|
||||
// operations
|
||||
// title
|
||||
// title
|
||||
void SetTitle(const wxString& label);
|
||||
const wxString GetTitle() const;
|
||||
// menu creation
|
||||
|
||||
// menu creation
|
||||
void AppendSeparator();
|
||||
void Append(int id, const wxString &item,
|
||||
const wxString &helpStr = "", bool checkable = FALSE);
|
||||
@@ -141,6 +141,9 @@ public:
|
||||
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;
|
||||
|
Reference in New Issue
Block a user