﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
959	GUICtrlGetState doesn't work for listview with enable flag	benm@…		"Hi All,
It seems that GUICtrlGetState doesn't work with a listview.
You can see in script below there is no change regardless of whether the listview is disabled or enabled.  I'm using this to try to reduce flicker.  Thank you.
--Ben  benm@baumprecision.com
{{{
#include <ListViewConstants.au3>
#include <GuiConstantsEx.au3>
$FormHelicoil = GUICreate(""FormHelicoil"", 852, 528)
Local $lis_helicoil = GUICtrlCreateListView(""Helicoils"", 48, 118, 241, 313)
GUICtrlCreateListViewItem(""Hello"", $lis_helicoil)
GUICtrlCreateListViewItem(""Hello2"", $lis_helicoil)
GUISetState(@SW_SHOW)

Do
	GUICtrlSetState($lis_helicoil, $GUI_DISABLE)
	MsgBox(0, ""IsControl Enabled?"", isControlEnabled($lis_helicoil))
	GUICtrlSetState($lis_helicoil, $GUI_ENABLE)
	MsgBox(0, ""IsControl Enabled?"", isControlEnabled($lis_helicoil))

	$Msg = GUIGetMsg()
Until $Msg = $GUI_EVENT_CLOSE
Exit

Func isControlEnabled(ByRef $tControl)
	;Return GUICtrlGetState($tControl)
	If BitAND(GUICtrlGetState($tControl), $GUI_ENABLE) = $GUI_ENABLE Then
		Return 1
	Else
		Return 0
	EndIf
EndFunc   ;==>isControlEnabled
}}}"	Bug	closed		AutoIt	3.3.0.0	None	No Bug	GUI	
