如何逐行向CRichEditCtrl添加文本? [英] How do you add text to a CRichEditCtrl line by line?
问题描述
CString str;
CString str;
... GetWindowText(str)
...GetWindowText(str)
str + =" more text";
str += "more text";
... SetwindowText(str);
...SetwindowText(str);
不起作用。
... SetCurSel(-1,-1);
...SetCurSel(-1, -1);
... ReplaceSelection(" more text")
...ReplaceSelection("more text")
不或者工作。
我得到的是我添加的第一行文本,然后忽略我添加的所有后续行。
All I am getting is the first line of text that I add then all all subsequent lines I add are ignored.
为什么?
推荐答案
您好Gregary Boyles,
Hi Gregary Boyles,
此论坛正在讨论Visual Studio WPF / SL Designer,Visual Studio Guidance Automation Toolkit,开发人员文档和帮助系统以及Visual Studio编辑器。
This forum is discussing Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.
您的问题与C ++开发有关,我将把这个帖子移到相应的论坛上以获得专业答案。
Your issue is related to C++ developing, I will move this thread to corresponding forum for a professional answer.
感谢您的理解。
祝你好运,
Fletcher
这篇关于如何逐行向CRichEditCtrl添加文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!