What I'm trying to do is select an element in CListCtrl and make the selected element visible (scroll down). What is the best way to do this?
I tried myListCtrl.SetItemState(idx, LVIS_SELECTED, LVIS_SELECTED) to select an item, but I need to manually scroll down ListCtrl to make it visible. There is a function CListCtrl::GetTopIndex , but I did not find an analogue of SetTopIndex .
Many thanks for your help!
source share