Avatar of Zulqernain
Zulqernain
 asked on

Scrolling causing problem

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

Avatar of undefined
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).
ASKER CERTIFIED SOLUTION
Catalepsy

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck