i am working in doc/view architecture and myview class is derived fron cscrollview.on my view i am getting the text written on it using textout.now the probelmis this that when i scroll the view the text get deleted and do not repaint.i want that scroll bar work in the normal way i.e. do no clear the view but it is not can u help me.
System Programming
Last Comment
Catalepsy
8/22/2022 - Mon
FrenchFries
You constantly need to redraw client area even when the window has been scrolled .
In the OnDraw() method call TextOut method for example.
But you can limit the amount of displayed text by getting the scroll position with CScrollView::GetScrollPosition() for example
AlexFM
Please show your OnDraw function and setting scroll size (I guess you do this in OnUpdate).
In the OnDraw() method call TextOut method for example.
But you can limit the amount of displayed text by getting the scroll position with CScrollView::GetScrollPosi