#include #include #include "GUIListViewEx_Mod.au3" ; Create GUI $hGUI = GUICreate("LVEx Example", 640, 510) ; Create ListView $cListView = GUICtrlCreateListView("Tom|Dick|Harry|Fred|Edna", 10, 40, 300, 300, $LVS_SHOWSELALWAYS) _GUICtrlListView_SetExtendedListViewStyle($cListView, BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_HEADERDRAGDROP)) _GUICtrlListView_SetColumnWidth($cListView, 0, 60) _GUICtrlListView_SetColumnWidth($cListView, 1, 70) _GUICtrlListView_SetColumnWidth($cListView, 2, 80) _GUICtrlListView_SetColumnWidth($cListView, 3, 50) _GUICtrlListView_SetColumnWidth($cListView, 4, 60) ; Create data array and fill listview Global $aLV_List[10] For $i = 0 To UBound($aLV_List) - 1 $aLV_List[$i] = "Tom " & $i & "|Dick " & $i & "|Harry " & $i & "|Fred " & $i & "|Edna " & $i GUICtrlCreateListViewItem($aLV_List[$i], $cListView) Next ; Initiate LVEx $iLV_Index = _GUIListViewEx_Init($cListView, $aLV_List) _GUIListViewEx_SetEditStatus($iLV_Index, "*") _GUIListViewEx_MsgRegister() GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch $sRet = _GUIListViewEx_EventMonitor() WEnd