The ListView_GetClickItem() function returns the index of the item that was most recently clicked.
• list_view_field – The list view field containing the item that was clicked.
• column_index – An optional returned integer parameter containing the column index of the column in which the user clicked. If the user did not click in a column, the value 0 is returned.
A long integer containing the index of the item that was clicked. The value LV_INVALID is returned if no item was clicked.
This function is typically used only in the state click script or double-click script for a list view field. In those scripts, it retrieves the item index and column index indicating where the user clicked.