Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

FindItem

Searches item data.

C

int WINAPI SftTree_FindItem(HWND hwndCtl, int index, SFTTREE_DWORD_PTR item);
int WINAPI SftTreeSplit_FindItem(HWND hwndCtl, int index, SFTTREE_DWORD_PTR item);

C++

int CSftTree::FindItem(int index, SFTTREE_DWORD_PTR item) const;
int CSftTreeSplit::FindItem(int index, SFTTREE_DWORD_PTR item) const;

Parameters

hwndCtl

The window handle of the tree control.

index

The zero-based index of the item where the search for the specified data is to begin.

item

The value to be searched.

Returns

The return value is the zero-based index of the item where the item data was found. -1 is returned if the item data was not found or an error occurred.

Comments

The FindItem function searches item data.

The value of item is compared to the value returned by GetItemData for each item starting at index. If a matching value is found, its zero-based index is returned, otherwise -1 is returned.

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