SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
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);
hwndCtl
The window handle of the tree control.
index
The zero-based index of the item, whose dependents are to be deleted.
The return value is the number of items remaining in the tree control. The return value is -1 if an error occurred.
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