Added wxEvtHandler::Disconect()

Added wxToolBar::DeleteTool()
  Removed the WXWIN_COMP... defines from the common setup.h
  Some tests,


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-11-18 15:58:35 +00:00
parent 61b04ac652
commit 97d7bfb8b4
12 changed files with 135 additions and 69 deletions

View File

@@ -945,32 +945,32 @@ void wxTreeCtrl::DeleteChildren(const wxTreeItemId& itemId)
void wxTreeCtrl::Delete(const wxTreeItemId& itemId)
{
wxGenericTreeItem *item = itemId.m_pItem;
wxGenericTreeItem *parent = item->GetParent();
wxGenericTreeItem *item = itemId.m_pItem;
wxGenericTreeItem *parent = item->GetParent();
if ( parent )
{
parent->GetChildren().Remove(item);
}
if ( parent )
{
parent->GetChildren().Remove( item ); // remove by value
}
item->DeleteChildren(this);
SendDeleteEvent(item);
delete item;
item->DeleteChildren(this);
SendDeleteEvent(item);
delete item;
m_dirty = TRUE;
m_dirty = TRUE;
}
void wxTreeCtrl::DeleteAllItems()
{
if ( m_anchor )
{
m_anchor->DeleteChildren(this);
delete m_anchor;
if ( m_anchor )
{
m_anchor->DeleteChildren(this);
delete m_anchor;
m_anchor = NULL;
m_anchor = NULL;
m_dirty = TRUE;
}
m_dirty = TRUE;
}
}
void wxTreeCtrl::Expand(const wxTreeItemId& itemId)