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!

Add messages to Cedit Box

Status
Not open for further replies.

ronnyjljr

IS-IT--Management
Nov 23, 2003
249
US
Hello,

Is there an easy way to append messages to a Cedit box instead of having to copy the entire buffer and then paste it all again with the new message? Or do I have to use a different control? Secondly, what is the command to strip newline characters?

Thanks,
Ron
 
If you add a CString member variable (provided the data is not "too" large), you can update it via an UpdateData call.

To remove newline characters use

CString::Remove(_T('\n'));

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top