|
-
June 4th, 1999, 10:01 AM
#1
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
-
June 7th, 1999, 03:22 AM
#2
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.
-
June 7th, 1999, 10:27 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|