I want to add some text on a dialog in VS 2005. I have installed Microsoft SDK on my system.
The text which I want to add is very big, it runs upto 4 pages.
So I decided to add edit control with scrollbar, which I am not able to do.
I tried adding through string table, but formatting was not maintained.
Plz let me know, how to show a formatted text开发者_JS百科 upto 4 pages on a dialog.
My application is non MFC application.
Thanks in advance
Vinayaka Karjigi
The edit control has a hard limit of 65k worth of text. You may be running into that. Try a rich edit control.
Have you tried to set the MultiLine attribute of your edit control?
Have you tried manually adding "\r\n" for next line or "\t" for tab in the string buffer. That may do the trick.
Update: Say you want to break the text in two lines TCHAR szEditBoxBuffer[] = TEXT("Hello\r\nWorld"); may do the trick. For tabs TCHAR szEditBoxBuffer[] = TEXT("Hello\tWorld"); This is tedious but this is what i could think of.
精彩评论