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 (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
A:
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.
Aidan Ryan
2010-01-20 17:57:19
i can get the groupby to work fine in xp by only switching on collapsable group if equal or higher than vista,if(mbIsVista == TRUE){ grp.state = LVGS_COLLAPSIBLE;}Do you know if there is a equalvalent 'method/way' to get the clicking on columns to work. I've tested in Vista and it works fine.My _WIN32_WINNT is set to #define _WIN32_WINNT 0x0600 if that helps?
K.Hinds
2010-01-26 14:02:50