#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GUIListView.au3>
$hGUI = GUICreate("Test Script", 300, 200)
$nLV = GUICtrlCreateListView("Col", 10, 20, 280, 160)
_GUICtrlListView_SetExtendedListViewStyle($nLV, $LVS_EX_GRIDLINES, $LVS_EX_GRIDLINES)
GUISetState(@SW_SHOW, $hGUI)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd