• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 290
  • Last Modified:

CEdit auto scrolling

I have a multilined edit box which i send text to with "/r/n" in front of it, this makes the text enter on a new line each time I send it. However, when the text gets to the last line on the dialog it keeps going down where you can't see it. How can i get the edit box to auto scroll down when the text goes off the screen?
0
scooter1
Asked:
scooter1
  • 2
1 Solution
 
paulburnsCommented:
Do you have the 'Auto VScroll' style set? Look in the properties for the edit box in the dialog editor to check this.
0
 
scooter1Author Commented:
that does not work
0
 
_mb_Commented:
After appending the text you can try to call
m_yourEdit.SetScrollPos(SB_VERT, 100); to scroll to the end of the text.
0
 
scooter1Author Commented:
Thank you.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now