Re: Which CView class to choose
As Tom already mentioned the CListView class in virtual mode would be a good
solution. You tell it how many items you want in your list, it handles the
scrolling and painting, all you have to do is give the strings to display
when it asks for them.
Here is an example:
http://www.codeproject.com/KB/combobox/virtuallist.aspx
Your other options is to have a CView (not CScrollView) and add a scrollbar
to it and do your own drawing. CScrollView is used to draw the entire
thing, and let the view scroll it, and obviously that's not what you want.
I second the CListView in virtual mode.
AliR.
"Stephen Myers" <StephenMyers@discussions.microsoft.com> wrote in message
news:514D6A0F-16A5-4667-B135-9AF9406AB11A@microsoft.com...
The application I'm working needs:
- To scroll through a very large series of text messages (potentially
several million).
- Allow text to be selected and copied to the clipboard.
Can I get control of the scroll bar used by a CEdit or CRichEdit control?
This would allow me to size the scroll bar the way I need it. I can then
handle the rest in OnVScroll().
Would I be better off starting with a CScrollView and adding the OnDraw()
and Copy handling?
Is there some other View class that would work out better for me?