Share via


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.

BOOL TreeView_DeleteAllItems( hwnd );

Parameters

  • hwnd
    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.

Related message: TVM_DELETEITEM

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Commctrl.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.