Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3670
Number of posts: 9122

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Escape sequences in an edit box... Posted by Veilside on 11 Nov 2002 at 10:23 AM
Hi,

I'm trying to read a textfile and put it's content in an edit box. But the edit box doesn't understand the escape sequence for a new line, '\n'. Instead of a new line some bogus character appears. Some escape sequences work fine, like '\t'. What am I doing wrong?

Don't know if this is of importance, but I'm using MSVC++ 6.0, MFC and Win XP.

Thanks for your help!
Report
Re: Escape sequences in an edit box... Posted by pingpong on 11 Nov 2002 at 12:56 PM
Make sure ES_MULTILINE and ES_WANTRETURN are added to your edit box style.

Then instead of \n add \r\n

: Hi,
:
: I'm trying to read a textfile and put it's content in an edit box. But the edit box doesn't understand the escape sequence for a new line, '\n'. Instead of a new line some bogus character appears. Some escape sequences work fine, like '\t'. What am I doing wrong?
:
: Don't know if this is of importance, but I'm using MSVC++ 6.0, MFC and Win XP.
:
: Thanks for your help!
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.