Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

If I have a CListCtrl with a set of groups defined, can I use the standard sort mechanism to sort items in the groups? Or does simply having groups stop me from being able to use SortItems with a PFNLVCOMPARE function?

I am not seeing any changes to the item positions when I call SortItems with my PFNLVCOMPARE function, so I'm wondering if I've missed something....

Thanks in advance!
Posted

1 solution

I came across the same issue recently. It seems that List Views (on which CListCtrl is built) cannot automatically sort within groups. However, help is at hand here[^].
 
Share this answer
 
Comments
Dave Kerr 17-Nov-10 9:19am    
Thanks Richard, this is exactly the information I needed :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900