CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    26

    Scroll to the focused item page in CListCtrl.

    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.


  2. #2
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: Scroll to the focused item page in CListCtrl.

    Use the memberfunction EnsureVisible(int, BOOL)


  3. #3
    Join Date
    Apr 1999
    Posts
    26

    Re: Scroll to the focused item page in CListCtrl.

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured