Hello there.

I have somehow managed to set up a listview with three columns and I am now trying to make it sortable. However I have a couple of questions before I do:

What is and when should you use the LVCOLUMN and LVITEM "iSubItem"? I ask because even if I mask with LVCF_SUBITEM or LVIF_SUBITEM iSubItem doesn't really do anything?

Generally speaking, when you add an item to a list do you LVM_INSERTITEM or LVM_SETITEM? Right now I use LVM_INSERTITEM to insert items in column 0 and LVM_SETITEM to insert in column 1 and 2. Is this a good or bad idea if you want a sortable list? (I understand that you cannot set the PARAM value with LVM_SETITEM?)

Should you set the LVITEM "iItem" value for every item in a row? I have to use it on the item in column 0, but if I use it in column 1 and 2 nothing really happens.

Thanks
Posted on 2003-10-03 17:53:40 by Psionicist
I posted a listview sort in a couple of places, you can look at this thread, might help.

http://www.asmcommunity.net/board/index.php?topic=14430&highlight=LVMSORTITEMSEX
Posted on 2003-10-04 02:49:42 by donkey