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

    CListCtrl & Scrollbar

    How can I scroll (or simulate a scroll) in a CListCtrl without scrollbar??
    I don't want scrollbar to be seen even if CListCtrl is not big enough to display all items. All items are vertically oriented, i.e.:
    Item 1
    Item 2
    Item N
    Thank in advance


  2. #2
    Guest

    Re: CListCtrl & Scrollbar

    I've come up against this problem and I found the easiest (not the
    cleanest!) method of scrolling one item at a time is by storing a
    "master" and a "display" list of items. When you come to display
    the items, copy items (from master list using top "index") into the
    display list:

    Scroll Down:- remove the top item on the "display" list.
    Scroll Up:- insert the item from the "master" list into the
    top slot and set the top index.

    Yes, I know it's not very clean, but it works quite well in
    practise. I hope this helps,

    Alan.


  3. #3
    Join Date
    Jun 1999
    Posts
    2

    Re: CListCtrl & Scrollbar

    ok, till now it seems to be the only solution.
    Thank you very much.
    Ferruccio


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