Click to See Complete Forum and Search --> : CStatic SetWindowMessage ...two lines


sigi
May 31st, 1999, 03:48 AM
Does anyone knows how to put two lines into a CStatic by SetWindowText.

SetWindowText(_T("abcdefgh\\nijklmno"));



does not works. In the Resource Editor it works by setting Text Properties to CStatic

Pallavi
May 31st, 1999, 04:09 AM
If U enter two lines of text, the text is automatically adjusted and it is scrolled on to the next line depending on the window size.
But if U want to force a particular text to come in the next line, I think U can use \r\n.
Hope this helps.