开发者

How to add text to "edit box" control in visual studio 2005

开发者 https://www.devze.com 2022-12-14 23:53 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号