Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

DeleteDependents

Deletes an item's dependent items.

C

int WINAPI SftTree_DeleteDependents(HWND hwndCtl, int index);
int WINAPI SftTreeSplit_DeleteDependents(HWND hwndCtl, int index);

C++

int CSftTree::DeleteDependents(int index);
int CSftTreeSplit::DeleteDependents(int index);

Parameters

hwndCtl

The window handle of the tree control.

index

The zero-based index of the item, whose dependents are to be deleted.

Returns

The return value is the number of items remaining in the tree control. The return value is -1 if an error occurred.

Comments

The DeleteDependents function deletes an item's dependent items.

By deleting an item's dependents, the item becomes a leaf item which can no longer be expanded or collapsed. It is not an error to use DeleteDependents if an item doesn't have any dependents.

The item described by index is not deleted. To delete an item, DeleteString can be used.

In a tree control using a virtual data source, this function cannot be used and an error is returned.

See Also C/C++ API | Categories | Notifications