Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can a CEDit control properly display a newline? 1

Status
Not open for further replies.

BrendanC

Programmer
Apr 18, 2001
4
US
I've had difficulty displaying multiple lines of text in a CEdit window. I use the CEdit.SetWindowText() method to put the text in the window, but separating lines with the "\n" character doesn't actually create a new line. Neither does a "\r" or a "\f". Can anyone offer any suggestions?

Thanks!

Brendan
 
try both "\r\n". John Fill
1c.bmp


ivfmd@mail.md
 
Try this also, go into your resources and select the CEdit control you want to put text into, press enter and click on the Styles Tab. There is a checkbox to allow a multiline CEdit control. I am not sure multiple lines of text are allowed without this option being set.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top