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

  • 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.

Howdy, Stranger!

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

Categories

In this Discussion