Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


Uses an application-defined comparison function to sort groups by ID within a list view control.

BOOL SortGroups( 
   PFNLVGROUPCOMPARE _pfnGroupCompare, 
   LPVOID _plv  


A pointer to the group comparison function.


A void pointer.

Returns true on success, false on failure.

This member function emulates the functionality of the LVM_SORTGROUPS message, as described in the Windows SDK.

Header: afxcmn.h

Community Additions

© 2015 Microsoft