I have a derived CMFCListCtrl which I can used group by and sort by fine via a contect menu. However when group by is being used and I select a column to sort by开发者_JAVA技巧 (by clicking on the coloumn header) the arrow changes but the items are not sorted, I don't get my 'onsortby' message triggered either, any ideas? I'm on XP is that the problem. Thanks
I had exactly the same problem when I was using Windows XP on my old computer.
Switching to a new computer with Windows 7 solved this issue. So I can cofirm that it's related to XP.
I think XP may be the problem and that list control grouping requires Vista or higher. How do you have _WIN32_WINNT defined?
There is limited list control grouping available in XP: Codeproject
See Windows Vista Control Enhancements from MSDN Magazine.
精彩评论