Archived

This topic is now archived and is closed to further replies.

Exellion

Newline in an editbox

Recommended Posts

I have a multiline read-only editbox in my program and it doesn't like me. It wont allow me to write on any line except the first one since the "\n" escape secuence doesn't work. Since there have to be a way to do this I thought I'd ask if someone knows how to do it. This is the code Im using at this moment:
SetDlgItemText(m_hWnd, IDC_OVERVIEWEDIT, "First line:\tThis escape secuence works well\nBut not this one.. I cant enter a new line in the editbox");
  
"He who hasn't hacked assembly language as a youth has no heart. He who does as an adult has no brain." [edited by - Exellion on May 2, 2003 7:15:58 AM]

Share this post


Link to post
Share on other sites
im not sure about this, but don''t you have to write:>

\n\r or is it \r\n

to change line?

In the next 80 years 6 billion people will die...

Share this post


Link to post
Share on other sites