手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

MFC的Edit Control中怎么实现换行

时间:2024-10-14 06:23:23

1、右键edit Control,弹出的菜单中选择“properties”或者“属性”选项。

MFC的Edit Control中怎么实现换行

2、在弹出的属性对话框中找到“MultiLine”,原有的显示为false

MFC的Edit Control中怎么实现换行

3、将其属性更改为true。同时Horizontal 和Vertical scro盟敢势袂ll也可以根据个人需要,将他们的属性更改为true,以增加文本的可读性。

MFC的Edit Control中怎么实现换行

4、在需要分行的地方添加"\r\n"

MFC的Edit Control中怎么实现换行

5、再次运行,分行就完成啦

MFC的Edit Control中怎么实现换行
© 手抄报圈