I am working on a ListView subclass that will ease many (of my) common tasks. I've posted a more primitive version of this to this list before. I've been playing with the item coloring code that Rob posted a little while ago. I've been poking around msdn, trying to extract the subitem from the message (and handle it's custom redraw), but so far have failed miserably. My failure is mainly due to my not understanding what's going on with all of the hooking and packing and unpacking. If anyone is able to post some code that reveals the subitem, that would be extremely helpful. If that person has a little extra time on their hands, I'd very much like to hear about how one goes about translating the structs from the msdn site and where you found the values of the constants.
FYI, my LV subclass will basically: 1. assign (or use predefined) ids to rows 2. be able to load data from a db, i.e.: $listview->populate_from_query($dbh, $sql, $primary_key_field); 3. provide custom sorting by column 4. hopefully, handle colors (fonts?) 5. a few other handy little functions i'll post a link to the code when it is ready... -ariel