﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3827	_GUICtrlListView_ClickItem send clicks outside ListView area	pixelsearch	Jpm	"When there is a horizontal scrollbar in ListView, if this scrollbar is dragged to the right, then _GUICtrlListView_ClickItem() will often click outside the ListView area and not on the ListView Item.
This wrong behavior will very often have the GUI lose focus. Reproducer :

{{{
#include <GuiListView.au3>
#include <GuiConstantsEx.au3>

$hGUI = GUICreate(""Test"", 500, 400)

$idListView = GUICtrlCreateListView(""Col0|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9"", 10, 10, 480, 300)
For $i = 0 To 9
    _GUICtrlListView_SetColumnWidth($idListView, $i, 200)
Next
$idItem = GUICtrlCreateListViewItem(""0|1|2|3|4|5|6|7|8|9"", $idListview)

$idButton = GUICtrlCreateButton(""Click me"", 200, 340, 85, 25)

GUISetState()

While 1
	Switch GUIGetMsg()
		Case $GUI_EVENT_CLOSE
			ExitLoop

		Case $idButton ; click when scrollbar is on left (ok), then click with scrollbar on right => GUI goes to background :(
			_GUICtrlListView_ClickItem($idListView, 0)
	EndSwitch
WEnd

GUIDelete($hGui)
}}}

Workaround & solutions provided by spudw2k, Danyfirex and Nine in this thread :
https://www.autoitscript.com/forum/topic/206066-_guictrllistview_clickitem-issue/
"	Bug	closed	3.3.15.5	Standard UDFs	3.3.15.4	None	Fixed		
