﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
510	_GUICtrlListView_ClickItem: If columns inside listview exceed visible area, clicks outside of the control	michael.sunwoo@…	Gary	"In the function _GUICtrlListView_ClickItem, if the columns inside the listview exceed visible area, the mouse click can happen outside of the control area.

Sample code is below.

{{{
#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <GuiConstantsEx.au3>
#include <GuiListView.au3>
#include <WindowsConstants.au3>

Opt('MustDeclareVars', 1)

Global $hListView

_Main()

Func _Main()
	; Create GUI
	GUICreate(""ListView Click Item"", 400, 300)
	$hListView = GUICtrlCreateListView("""", 2, 2, 394, 268)
	GUISetState()

	; Add columns
	_GUICtrlListView_InsertColumn($hListView, 0, ""Column 1"", 100)
	_GUICtrlListView_InsertColumn($hListView, 1, ""Column 2"", 500)
	_GUICtrlListView_InsertColumn($hListView, 2, ""Column 3"", 500)
	
	; Add items
	_GUICtrlListView_AddItem($hListView, ""Row 1: Col 1"", 0)
	_GUICtrlListView_AddItem($hListView, ""Row 2: Col 1"", 1)
	_GUICtrlListView_AddItem($hListView, ""Row 3: Col 1"", 2)
	
	_GUICtrlListView_ClickItem($hListView, 1, ""left"", False, 2)
	
	; Loop until user exits
	Do
	Until GUIGetMsg() = $GUI_EVENT_CLOSE
	GUIDelete()
EndFunc   ;==>_Main
}}}

The expected behavior is it clicks within the currently visible area of the listview control, not the center of the width of all the columns.

This reproduces on BETA v3.2.13.7 and RELEASE v3.2.12.1.

Is there a more programmatic way to select a listview item instead of using a MouseClick (inside the _GUICtrlListView_ClickItem UDF)?"	Bug	closed	3.2.13.8	Standard UDFs	3.2.13.7	None	Fixed		
