Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top