原文地址:http://blog.sina.com.cn/s/blog_7f38d9f50100t8fg.html
作者:calendar1013
一、通过回车换行:
这里要有两个设置
<1>.将控件的属性设置为Mutilines->true;
<2>.将控件的另一个属性设置为Want return->true.
水平和垂直滚动条设置:
<1>水平滚动条,控件属性设置为:Horizontal Scroll->TRUE
<2>垂直滚动条,控件属性设置为:Vertical Scroll->TRUE
二、通过UpdateData更新控件窗口内容中的换行
<1>.将控件的属性设置为Mutilines->true;
<2>.输出字符串换行符是 "\r\n" 而不是"\n".