|
Thread: \n
-
Jun 22nd, 2002, 12:42 AM
#1
Thread Starter
Fanatic Member
\n
How do I make the effect of \n in C++? I created an EDIT
CreateWindowEx(WS_EX_CLIENTEDGE,"EDIT","hello\nthis");
it doesn't work, it just displays hello\nthis, instead of :
hello
this
how would I make it a new line?please help

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Jun 22nd, 2002, 05:38 AM
#2
Monday Morning Lunatic
You need to give it the ES_MULTILINE style (it's not an extended style, so it goes in with WM_CHILD, etc.).
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 22nd, 2002, 09:36 AM
#3
Frenzied Member
I think even then it just gives a black bar, try \r\n
-
Jun 22nd, 2002, 11:37 AM
#4
Thread Starter
Fanatic Member
\r\n worked, thanks!!!
yes, I did ES_MULTILINE, ES_AUTOVSCROLL,ES_AUTOHSCROLL.

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|