I want to sort a listview control by clicking a column header. What I did was that I used the macro ListView_SortItems(hwnd, pfnCompare, lParamSort) when a notification for header click was received. Also I wrote my own compare as Compare(lParam1, lParam2, lParamSort). The problem is that every time the Compare function gets called, it gets two NULL parameters for the first two parameters. Does anybody have some hint for this?
Thanks,
Yimin
[email protected]