CEdit新行显示为框 [英] CEdit new lines show up as boxes

查看:100
本文介绍了CEdit新行显示为框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从文件中读取文本并将其存储在字符串中。当我使用ShowWindowText时,新行显示为框。我使用了\\\\ n技巧,但我想保存任何更改(比如记事本),它会存储在每一行的末尾。


我需要什么?要做什么?

I''m reading text from a file and storing it in a string. When I use ShowWindowText, new lines show up as boxes. I used the \r\n trick but I want to save any changes (like notepad) and it''ll store at the end of every line.

What would I need to do?

推荐答案

确保编辑框有这些样式


ES_AUTOHSCROLL

ES_AUTOVSCROLL

ES_MULTILINE

ES_WANTRETURN


这些将显示为对话框编辑器属性页面的样式选项。
Make sure you edit box has these styles

ES_AUTOHSCROLL
ES_AUTOVSCROLL
ES_MULTILINE
ES_WANTRETURN

These will appear as Styles options of the properties page of the dialogue box editor.


我有他们全部


呃,不应该是别的,当你从编辑框中读到文本时,它应该在最后放置换行符等读取的行。
Erm there shouldn''t be anything else, when you read the text from the edit box it should be putting newlines etc at the end of the lines read.


这篇关于CEdit新行显示为框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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