ListView_FindItem

The ListView_FindItem macro searches for a list view item with the specified characteristics. You can use this macro or explicitly send the LVM_FINDITEM message.

int ListView_FindItem(

HWND hwnd,  
int iStart,  
const LV_FINDINFO FAR* plvfi  
);  

Parameters

hwnd

Handle to the list view control.

iStart

Index of the item to begin the search with or -1 to start from the beginning. The specified item is itself excluded from the search.

plvfi

Pointer to an LV_FINDINFO structure that contains information about what to search for.

Return Values

Returns the index of the item if successful or -1 otherwise.

See Also

LV_FINDINFO, LVM_FINDITEM