I have a search function in my application which is looking from the CListCtrl. I have done the SetItemState and managed to highlight and focus on the item.
My problem is how can I make the CListCtrl to scroll to the focused item's page? Thanks.
Printable View
I have a search function in my application which is looking from the CListCtrl. I have done the SetItemState and managed to highlight and focus on the item.
My problem is how can I make the CListCtrl to scroll to the focused item's page? Thanks.
Use the memberfunction EnsureVisible(int, BOOL)
Thanks I got it.
Besides EnsureVisible I just found out that the Scroll class member also can be used to achieve my task. Anyway thanks a lot.