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
Printable View
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
You need to give it the ES_MULTILINE style (it's not an extended style, so it goes in with WM_CHILD, etc.).
I think even then it just gives a black bar, try \r\n
\r\n worked, thanks!!!
yes, I did ES_MULTILINE, ES_AUTOVSCROLL,ES_AUTOHSCROLL.