Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

SFTTREE_DELETEPROC Type Definition

Defines the type of a user-supplied callback routine, called by SftTree/DLL whenever an item is removed from the tree control.

typedef void (CALLBACK* SFTTREE_DELETEPROC)(
        HWND hwnd,
        int index,
        SFTTREE_DWORD_PTR itemData,
        SFTTREE_DWORD_PTR UserData);

Parameters

hwnd

The window handle of the tree control.

index

The zero-based index of the item currently being deleted.

itemData

The application-specific value associated with the item being deleted, set using SetItemData and SetItemDataPtr.

UserData

An application-specific value, as supplied in the SFTTREE_DELETEPARM structure.

Comments

Defines the type of a user-supplied callback routine, called by SftTree/DLL whenever an item is removed from the tree control.

A deletion callback is defined using SetDeleteCallback. The callback receives control when an item is about to be deleted. The callback can then perform application specific cleanup processing for the item being deleted. The callback routine is called immediately before the item is deleted.

If cell item data is used, GetCellInfo can be used to retrieve the cell information.

The callback must not update the tree control in any way.

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