Re: newline in static text
SetDlgItemText(IDC_TEXT,"Here is first line\nHere is second line");
Regards,
Brandon Parker
Re: newline in static text
Thanks a lot...
But if I want to "dynamically" arrange text ( SetDlgItemText(xxxxx) puts "fixed" text...), what should I do ?
Ex. 1. prepare char *p = "xxxxx\n" + "yyyyyy\n"
+ "zzzzz"
2. SetDlgItemText( , p )
Is this correct ???
Thanks !!!
Re: newline in static text
Thanks a lot !
But if I want to "dynamically" arrange text
( SetDlgItemText() puts "fixed" text), what should
I do ?
Ex.
1. prepare char *p = "xxxx\n"+"yyyy\n"+"zzzz"
2. SetDlgItemText( , p )
Is it correct ?
Thanks !
Re: newline in static text
Hi,
Use \r\n instead of only \n for multiline statis control
Ex. 1. prepare char *p = "xxxxx\r\n" + "yyyyyy\r\n"
+ "zzzzz"
2. SetDlgItemText( , p )
Regards
santanu
Be sure to rate answers if it helped, to encourage them.
Re: newline in static text
Thanks ! I will try it immediately....