listView
-
-
hi all,, i am developing an application that list running windows in a list view as in taskmanager, the items in the listview can be sorted on clicking a column. my problem is how to update the values in listview after sorting the items.
Thanks & Regards
nitin3 wrote:
how to update the values in listview after sorting the items
How are you sorting the items? If you use ListView_SortItems (LVM_SORTITEMS) you shouldn't need to do anything. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
hi all,, i am developing an application that list running windows in a list view as in taskmanager, the items in the listview can be sorted on clicking a column. my problem is how to update the values in listview after sorting the items.
Thanks & Regards
Hello, I think that How to sort a ListView control by a column in Visual C++ .NET[^] article could/should help you. Best regards, Mihai Moga
-
nitin3 wrote:
how to update the values in listview after sorting the items
How are you sorting the items? If you use ListView_SortItems (LVM_SORTITEMS) you shouldn't need to do anything. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
i used ListView_SortItemsEx Stpes:- state of lv before sorting col1 col2 col3 .. coln --------------------------------------------------------------- Notepad Running Calculator Running 1) the user click on first column then it will become col1 col2 col3 .. coln --------------------------------------------------------------- Calculator Running Notepad Running 2) after a second the list view get refreshed by calling EnumWindows. the code to add item to the listview is written in lpWndEnumProc function. if i got the handle to the window calculator at first , i dont know what will be the index of calculater this time, if this is not a sorted list i can insert it at index 0.
Thanks & Regards