开发者

Create RTF file using MFC

开发者 https://www.devze.com 2023-02-05 12:57 出处:网络
I have a task to create a rtf file in MFC. i.e. to read the data from xml file and parse the rft content and create the rtf file. I parsed the RTF content and created a file file1.rtf using CFile, but

I have a task to create a rtf file in MFC. i.e. to read the data from xml file and parse the rft content and create the rtf file. I parsed the RTF content and created a file file1.rtf using CFile, but the output 开发者_如何学Cfile doesnt display the content properly. Is there any other way to create the file.

Thanks in advance.


The simplest way I've found is to use a RichTextBox control (either on a dialog or created dynamically). Use the control's methods to build your content.

0

精彩评论

暂无评论...
验证码 换一张
取 消