C ++编辑控制问题 [英] C++ edit control questi

查看:43
本文介绍了C ++编辑控制问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在编辑控件中插入带有结尾行"\ n"的文本时,编辑控件会向我显示一个方形字符,并且不要在下一次插入时结束该行.这是怎么做到的?

When I insert a text in my edit control with endline ''\n'' the edit control show me a square character and do not end the line for next insertion.How do it this?

推荐答案

启用多行属性( ES_MULTILINE [ ^ ]).
Enable the multi-line property (ES_MULTILINE[^]) of the edit box.


请参见编辑框的属性.
您可以看到多行|错误.
将其更改为True.
See edit box''s property.
you can see Multiline | False .
Change it to True.


请参见
See the section here[^] about line break handling.


这篇关于C ++编辑控制问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆