This might be a long shot but I though I would ask anyway. I have struggled with this in the past and never have been able to figure out how to do it, and MSDN isn't very clear about it.
Here are the steps I follow:
- Enable visual styles (required for tile view)
- Create the listview with CreateWindowEx
- Send LVM_SETVIEW with LV_VIEW_TILE
- Send LVM_SETTILEVIEWINFO with cLines of TILEVIEWINFO struct set to the # subitems I want
- Insert items like normal (Works fine)
- Set subitem text by sending LVM_SETITEM with iSubitem of LVITEM set (Does nothing!)
I saw this page here,
https://msdn.microsoft.com/en-us/library/windows/desktop/hh270408%28v=vs.85%29.aspx
and it mentions columns so I tried to insert columns before attempting to set subitem text but that doesn't work either (subitem text does not appear). I also tried setting cColumns member of the LVITEM structure when inserting items but then it fails to insert the items.
I don't know what else to try, so i'm asking if anyone has an example of this they could share I would be very grateful!