no message

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Unknown (UG)
1998-10-25 07:37:45 +00:00
parent 0b4f9ee3d0
commit 42c5812dbf
2 changed files with 23 additions and 17 deletions

View File

@@ -545,7 +545,8 @@ wxTreeItemId wxTreeCtrl::AppendItem(const wxTreeItemId& parent,
void wxTreeCtrl::Delete(const wxTreeItemId& item)
{
wxTreeItemData *data = GetItemData(item);
delete data; // may be NULL, ok
if(data!=NULL)
delete data; // may be NULL, ok
if ( !TreeView_DeleteItem(wxhWnd, (HTREEITEM)(WXHTREEITEM)item) )
{
@@ -612,6 +613,11 @@ void wxTreeCtrl::Toggle(const wxTreeItemId& item)
DoExpand(item, TVE_TOGGLE);
}
void wxTreeCtrl::ExpandItem(const wxTreeItemId& item, int action)
{
DoExpand(item, action);
}
void wxTreeCtrl::Unselect()
{
SelectItem(wxTreeItemId((WXHTREEITEM) 0));