The ListView_ItemSetImage() function sets the item image associated with the specified list view item.
ListView_ItemSetImage(list_view_field, item_index, image {, overlay_image})
• list_view_field – The list view field containing the specified item.
• item_index – A long integer specifying the list view item whose item image is being set.
• image – An integer specifying the image to use. The value corresponds to the item number of an item image listed in the ListView Images window. If no image will be displayed, use the LV_NOIMAGE constant.
• overlay_image – An optional integer specifying the image to use as the overlay image. The value corresponds to the item number of an item image listed in the ListView Images window.
An integer containing the item number of the previous item image for the specified list view item. If no item image was associated with the list view item, the constant LV_NOIMAGE is returned.