Hi all,
is there a way to disable a listview created with _GUICtrlListView_Create?
GUICtrlSetState($g_hListView,@SW_DISABLE) does not work, reading arround the form give me the idea that I need to use winapi but I have no clue how to disable it that way
thanks
#include <GUIConstantsEx.au3>
#include <GuiImageList.au3>
#include <GuiListView.au3>
$hGUI=GUICreate("ImageList Create", 400, 300)
$g_hListView = _GUICtrlListView_Create($hGUI, "", 2, 2, 394, 268)
GUISetState(@SW_SHOW)
_GUICtrlListView_AddColumn($g_hListView, "a", 120)
_GUICtrlListView_AddColumn($g_hListView, "b", 120)
_GUICtrlListView_AddItem($g_hListView, "1", 0)
_GUICtrlListView_AddItem($g_hListView, "2", 1)
_GUICtrlListView_AddSubItem($g_hListView, 0, "3", 1)
_GUICtrlListView_AddSubItem($g_hListView, 1, "4", 1)
;Not Working
GUICtrlSetState($g_hListView,@SW_DISABLE)
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()