#include $hGui = GUICreate("ListView with progressbar", 420, 400, -1, -1, BitOR($GUI_SS_DEFAULT_GUI, $WS_SIZEBOX)) GUIRegisterMsg($WM_MEASUREITEM, "WM_MEASUREITEM") ;place before listview creation - message sent once for each ownerdrawn control created Global $hListView = GUICtrlCreateListView("Files|Path|Progress", 10, 10, 400, 380, _ BitOR($LVS_REPORT, $LVS_SHOWSELALWAYS, $LVS_OWNERDRAWFIXED, $WS_BORDER), _ BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_DOUBLEBUFFER)) ; + $LVS_EX_CHECKBOXES + $LVS_SINGLESEL _FillListView($hListView) Func _FillListView($hWnd) _GUICtrlListView_BeginUpdate($hWnd) _GUICtrlListView_SetColumnWidth($hWnd, 0, 100) _GUICtrlListView_SetColumnWidth($hWnd, 1, 140) _GUICtrlListView_SetColumnWidth($hWnd, 2, 150) _GUICtrlListView_AddItem($hWnd, "AutoIT") _GUICtrlListView_AddItem($hWnd, "") _GUICtrlListView_AddItem($hWnd, "Script") _GUICtrlListView_AddItem($hWnd, "Work") _GUICtrlListView_AddItem($hWnd, "New") _GUICtrlListView_AddItem($hWnd, "Test") _GUICtrlListView_AddItem($hWnd, "Image") _GUICtrlListView_AddItem($hWnd, "Soft") _GUICtrlListView_AddItem($hWnd, "News") _GUICtrlListView_AddItem($hWnd, "Info") _GUICtrlListView_AddSubItem($hWnd, 0, "C:\Program Files\AutoIt3", 2) _GUICtrlListView_AddSubItem($hWnd, 1, "C:\Program Files\Opera", 1) _GUICtrlListView_AddSubItem($hWnd, 1, "Opera", 2) _GUICtrlListView_AddSubItem($hWnd, 2, "C:\MyScript\Work", 1) _GUICtrlListView_AddSubItem($hWnd, 2, "Work", 2) _GUICtrlListView_AddSubItem($hWnd, 3, "C:\New\Script", 1) _GUICtrlListView_AddSubItem($hWnd, 4, "C:\Image\Image", 1) _GUICtrlListView_AddSubItem($hWnd, 5, "C:\Soft\New", 1) _GUICtrlListView_AddSubItem($hWnd, 6, "C:\Music\Info", 1) _GUICtrlListView_AddSubItem($hWnd, 7, "C:\Video\Soft", 1) _GUICtrlListView_AddSubItem($hWnd, 8, "C:\Project\Script", 1) _GUICtrlListView_AddSubItem($hWnd, 9, "C:\Work\Script", 1) _GUICtrlListView_EndUpdate($hWnd) EndFunc $hProgress1 = _ListView_InsertProgressBar($hListView, 0, 1) $hProgress2 = _ListView_InsertProgressBar($hListView, 1) $hProgress3 = _ListView_InsertProgressBar($hListView, 2) $hProgress4 = _ListView_InsertProgressBar($hListView, 3, 2) $hProgress5 = _ListView_InsertProgressBar($hListView, 4, 2) $hProgress6 = _ListView_InsertProgressBar($hListView, 5, 1) $hProgress7 = _ListView_InsertProgressBar($hListView, 6, 2) $hProgress8 = _ListView_InsertProgressBar($hListView, 7, 2) $hProgress9 = _ListView_InsertProgressBar($hListView, 8, 2) $hProgress10 = _ListView_InsertProgressBar($hListView, 9, 2) ;~ GUIRegisterMsg($WM_DRAWITEM, "WM_DRAWITEM") GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE