Click to See Complete Forum and Search --> : Scroll to the focused item page in CListCtrl.


Jonathan
May 21st, 1999, 01:30 AM
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.

Franky Braem
May 21st, 1999, 01:44 AM
Use the memberfunction EnsureVisible(int, BOOL)

Jonathan
May 21st, 1999, 02:13 AM
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.