Click to See Complete Forum and Search --> : CListCtrl & Scrollbar


Ferruccio Vitale
June 4th, 1999, 10:01 AM
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

June 7th, 1999, 03:22 AM
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.

Ferruccio Vitale
June 7th, 1999, 10:27 AM
ok, till now it seems to be the only solution.
Thank you very much.
Ferruccio