no message
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user