Link to home
Start Free TrialLog in
Avatar of cyberbum
cyberbum

asked on

CRichEditCtrl: scrolling

When I add text to a rich edit control with SetSel and ReplaceSel, I also want the rich edit to automatically scroll down if the text added will go past. I've already specified the Auto VScroll flag but this only works when the caret is within the rich edit and you press "return". I am adding text to the rich edit through a normal edit box, so the Auto vscroll does not work.
I checked out an article at Code Guru (http://www.codeguru.com/richedit/dalrichedit.shtml), and this seems to be exactly what I need, but the code does not make sense and the resource file is in Korean so no help there.
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cyberbum
cyberbum

ASKER

You are a god man, it works like a charm, been busting my head for days with this. Thank you!