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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user