Escape sequences in an edit box... - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Escape sequences in an edit box...

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, '
'. Instead of a new line some bogus character appears. Some escape sequences work fine, like ' '. 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!:-)

Comments

  • pingpongpingpong Posts: 937Member
    Make sure ES_MULTILINE and ES_WANTRETURN are added to your edit box style.

    Then instead of
    add


    : 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, '
    '. Instead of a new line some bogus character appears. Some escape sequences work fine, like ' '. 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!:-)
    :

Sign In or Register to comment.