added missing DeleteItem(long itemId) function

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1998-07-07 13:16:37 +00:00
parent 0e338ff9a3
commit a32dd69091
2 changed files with 113 additions and 106 deletions

View File

@@ -627,6 +627,14 @@ bool wxTreeCtrl::ExpandItem( long item, int action )
return TRUE;
};
void wxTreeCtrl::DeleteItem( long item )
{
wxGenericTreeItem *pItem = FindItem( item );
wxCHECK_RET( pItem != NULL, "wxTreeCtrl::DeleteItem: no such pItem." );
pItem->m_parent->m_children.DeleteObject(pItem);
Refresh();
}
bool wxTreeCtrl::DeleteAllItems()
{
delete m_anchor;