Quote Originally Posted by LaVolpe View Post
Bug Report: ListView, whether listitems exist or not
- when listview is shown and has 2+ column headers, remove all but one
- re-add 1 or 2 column headers
- Subscript out of Range error

I think the control is trying to redraw somewhere between the column header being added, but the header not being appended to the collection yet.

Updated: I don't know if this was the right thing to do or not, but solved the problem...
Class: lvwColumnHeaders
Method: Add
Action: moved the "ShadowListView.FColumnHeadersAdd" call to end of method
The fix as you suggested is OK. However, I would like to replicate the problem to look for another potential issue.
But I couldn't replicate. Can you bundle a small demo?


Quote Originally Posted by LaVolpe View Post
I noticed you added several types of sorting options, but didn't include the one I was looking for... Explorer-like sorting when text & numeric listitems are intermixed.
Thanks. Will include sort option StrCmpLogicalW soon.

Quote Originally Posted by LaVolpe View Post
When a listview column is removed, you shift all subitems left one. That only works if the last subitem was the one removed. In your sample project, try removing column 2 (subitem 1). The column headers shift correctly, but the subitems do not.
The MS ListView behaves exactly the same. So I do not consider this being a "bug". Thanks however for your testing.