﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3150	Add new functions to GuiListView UDF	anonymous		"Please add new function to GuiListView UDF:
_GUICtrlListView_GetFirstSelectedIndice($hWnd)

In many cases only first selected indice is needed and also it would be faster, than _GUICtrlListView_GetSelectedIndices()

{{{
Func _GUICtrlListView_GetFirstSelectedIndice($hWnd)
	Local $iRet, $iCount = _GUICtrlListView_GetItemCount($hWnd)
	For $iItem = 0 To $iCount
		If IsHWnd($hWnd) Then
			$iRet = _SendMessage($hWnd, $LVM_GETITEMSTATE, $iItem, $LVIS_SELECTED)
		Else
			$iRet = GUICtrlSendMsg($hWnd, $LVM_GETITEMSTATE, $iItem, $LVIS_SELECTED)
		EndIf
		If $iRet Then
			Return Number($iItem)
		EndIf
	Next
	Return SetError(1,0,0)
EndFunc   ;==>_GUICtrlListView_GetSelectedIndices
}}}
"	Feature Request	closed		AutoIt		None	Rejected		
