创建C ++ RichText编辑器以支持MS Word等表格和列 [英] Creating a C++ RichText edtor to support tables and columns like MS Word

查看:124
本文介绍了创建C ++ RichText编辑器以支持MS Word等表格和列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone



我想创建一个支持类似于MS Word的表格的富文本编辑器。我真的不想尝试重新创建方向盘,但MS Word不支持我想要的准确性。尽可能接近我的建立,MS Word仅支持字体大小,行间距和字符间距的精度达到1/10,但我需要TWIPS的准确度。



我已经研究了这个主题几个小时了,我找不到使用RichEditCtrl或CRichEditCtrl创建表的解决方案。我想我应该提一下,我正在使用VC ++ 6.0进行编程工作,而CRichEditCtrl或CRichEditView的类成员不支持任何类型的表格格式。



在这一点上,我真的很好奇微软如何实现这一点,我对可能的解决方案持开放态度。我最好的猜测是每个表格单元格都是单独的RichEditCtrl或CRichEditCtrl。



预先谢谢



布鲁斯

Hello Everyone

I want to create a rich text editor that supports tables similar to MS Word. I really don''t like trying to recreate the wheel, but MS Word does not support the accuracy that I desire. As close as I can establish, MS Word only supports accuracy to 1/10 of a point for font size, line spacing, and character spacing, but I need the accuracy of TWIPS.

I have researched this subject for hours and I have not been able to find a solution for creating tables with the RichEditCtrl or CRichEditCtrl. I suppose I should mention that I am using VC++ 6.0 for my programming efforts, and the class members for the CRichEditCtrl or CRichEditView do not support any type of table formatting.

At this point, I am really quite curious how Microsoft achieved this and I am open to possible solutions. My best guess would be that each table cell is an individual RichEditCtrl or CRichEditCtrl.

Thanks In Advance

Bruce

推荐答案

好奇,你为什么需要这种准确性?



更重要的是,VC6 !!!! IMO,你不会对那个版本的Visual Studio走得太远;和AFAIK,富文本编辑器不会给你那么精确,最终的打印渲染需要你完成(但我不是那么专家)。



另外,如果这是用于打印并且准确性非常重要,那么学习Tex(或LaTex)可能会更好,它可以为您提供所需的全部精确度。
curious, why do you need that accuracy ?

And more importantly, VC6 !!!! IMO, you will not go far with that version of Visual Studio; and AFAIK, the richtext editor will not give you that precision and the final print rendering will need to be done by you (but I''m no expert on that).

Also, if this is for printing and accuracy is really important, it might be better for you to learn Tex (or LaTex) which should give you all the accuracy you need.


这篇关于创建C ++ RichText编辑器以支持MS Word等表格和列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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