TreeView_DeleteItemTreeView_DeleteItem*
*Contents  *Index  *Topic Contents
*Previous Topic: TreeView_DeleteAllItems
*Next Topic: TreeView_EditLabel

TreeView_DeleteItem


BOOL TreeView_DeleteItem(
    HWND hwndTV,
    HTREEITEM hitem
   );		

Removes an item from a tree view control. You can use this macro, the TreeView_DeleteAllItems macro, or send the TVM_DELETEITEM message explicitly.

hwndTV
Handle to the tree view control.
hitem
Handle to the item to delete. If hitem is the TVI_ROOT value, all items are deleted from the tree view control.

If the item label is being edited, the edit operation is canceled and the parent window receives the TVN_ENDLABELEDIT notification message. The parent window receives a TVN_DELETEITEM notification message when the item is removed.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.