Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

ItemIndex

Returns an item's index given an item ID.

C

int WINAPI SftTree_GetItemIndex(HWND hwndCtl, SFTTREE_ID id);
int WINAPI SftTreeSplit_GetItemIndex(HWND hwndCtl, SFTTREE_ID id);

C++

int CSftTree::GetItemIndex(SFTTREE_ID id) const;
int CSftTreeSplit::GetItemIndex(SFTTREE_ID id) const;

Parameters

hwndCtl

The window handle of the tree control.

id

The item ID of an item for which the zero-based index is to be retrieved.

Returns

GetItemIndex returns an item's index given an item ID.

Comments

The GetItemIndex function returns an item's index given an item ID.

The item ID returned by GetItemID does not change throughout the lifetime of an item. Even if an item changes its index position because other items are deleted or inserted, the item ID remains constant. The item index describes the zero-based position of an item in a tree control.

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