TreeView_DeleteAllItems

This macro removes an item from a tree-view control. You can use this macro, the TreeView_DeleteItem macro, or send the TVM_DELETEITEM message explicitly.

At a Glance

Header file: Commctrl.h
Windows CE versions: 1.0 and later
Related message: TVM_DELETEITEM

Syntax

BOOL TreeView_DeleteAllItems( hwnd);

Parameters

hwndTV

Handle to the tree view control.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

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.