PyCListCtrl.GetNextItem

int = GetNextItem(item, flags )

Searches for a list view item with specified properties and with specified relationship to a given item.

Parameters

item : int

Index of the item to begin the searching with, or -1 to find the first item that matches the specified flags. The specified item itself is excluded from the search.

flags : int

Geometric relation of the requested item to the specified item, and the state of the requested item. The geometric relation can be one of these values:
LVNI_ABOVE
LVNI_ALL
LVNI_BELOW
LVNI_TOLEFT
LVNI_TORIGHT
The state can be zero, or it can be one or more of these values:
LVNI_DROPHILITED
LVNI_FOCUSED
LVNI_HIDDEN
LVNI_MARKED
LVNI_SELECTED
If an item does not have all of the specified state flags set, the search continues with the next item.

Return Value

Returns an integer index, or raises a win32ui.error exception if not item can be found.