﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
204	GUICtrlCreateListViewItem() - new optional parameter IconIndex	Zedna		"GUICtrlCreateListViewItem() - new optional parameter IconIndex
$iImage - Zero based index of the item's icon in the control's image list 

This new parameter will be optional so no backward compatibility problems.


It should be the same as it's in _GUICtrlListView_AddItem() UDF

_GUICtrlListView_AddItem($hWnd, $sText[, $iImage = -1])

$iImage - Zero based index of the item's icon in the control's image list 

Maybe the same apply also for GUICtrlCreateTreeViewItem()

_GUICtrlTreeView_Add($hWnd, $hSibling, $sText[, $iImage = -1[, $iSelImage = -1]])

$iImage - Zero based index of the item's icon in the control's image list 
$iSelImage - Zero based index of the item's icon in the control's image list 

***

Idea comes from my Log_View project (see my sig on the forum)
where I create many ListView items by GUICtrlCreateListViewItem() and then I use GUICtrlSetImage(-1, @ScriptFullPath, $index) to set icon for just created ListViewItem item based on index from EXE icons in resources. But this is very slow because there is internally called ExtractIcon (fileoperations) and so on - for each item inside LOOP.


{{{
$index = ...
GUICtrlCreateListViewItem($itemtext, $ListView1)
GUICtrlSetImage(-1, @ScriptFullPath, $index)

}}}

should be

{{{
$index = ...
GUICtrlCreateListViewItem($itemtext, $ListView1, $index)
}}}

Of course at start of script will be _GUICtrlListView_SetImageList () in this case."	Feature Request	closed		AutoIt			Rejected		
