Question

I have 2 List controls side by side in my view area. When I select an item in list1, the list2 is populated. When an item is selected in list2, details are displayed in another view besides it.

So when an item is selected in list2, list1 looses its selected state and focused states(markers).

How to keep the item highlight in list1 after focus is moved away?

Was it helpful?

Solution

When constructing the List View control, specify the LVS_SHOWSELALWAYS. This will display the selected item(s) regardless of whether or not the control has input focus.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top