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