TVM_DELETEITEMTVM_DELETEITEM*
*Contents  *Index  *Topic Contents
*Previous Topic: TVM_CREATEDRAGIMAGE
*Next Topic: TVM_EDITLABEL

TVM_DELETEITEM


TVM_DELETEITEM 
    wParam = 0; 
    lParam = (LPARAM) (HTREEITEM) hitem; 

Removes an item from a tree view control. You can send this message explicitly or by using the TreeView_DeleteItem or TreeView_DeleteAllItems macro.

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.