Solved

CEdit auto scrolling

Posted on 2000-05-17
4
271 Views
Last Modified: 2013-11-20
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
Comment
Question by:scooter1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 2

Expert Comment

by:paulburns
ID: 2819835
Do you have the 'Auto VScroll' style set? Look in the properties for the edit box in the dialog editor to check this.
0
 

Author Comment

by:scooter1
ID: 2819862
that does not work
0
 
LVL 3

Accepted Solution

by:
_mb_ earned 20 total points
ID: 2820073
After appending the text you can try to call
m_yourEdit.SetScrollPos(SB_VERT, 100); to scroll to the end of the text.
0
 

Author Comment

by:scooter1
ID: 2822455
Thank you.
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question