Virtual CMFCListCtrl select same item after sorting

1

I am using CMFCListCtrl with LVS_OWNERDATA.

After sorting I want to select the item with same data

for e.g

In this list control 3rd item is selected. Before Sorting

Now I sorted the first column by header clicking, now the selected item is 3rd row.But I want to select the item based on data for.e.g before sorting the selected item has label value as "startup" and the address as "0x00000060". I want to select the item by data not by index.

After Sorting

You can get sample application for virtual list control with sorting from this link https://www.codeguru.com/cpp/controls/listview/advanced/article.php/c4151/MFC-Virtual-List-Control.htm

Please help me to achieve my requirement.

mfc
asked on Stack Overflow Oct 1, 2018 by user369287

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0