CRichEditControl中的页数 [英] Page Count in CRichEditControl

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

问题描述


有人可以给我一些如何在MFC的CRichEditControl中计算页数吗?
谢谢
Dev.

Hi,
Can anybody give me some how do I count the number of pages in CRichEditControl in MFC
Thanks
Dev.

推荐答案

定义第一个页面.您必须定义页面可打印区域的长度和宽度,边距等.一旦有了,由于RichEditControl并非所见即所得,则必须模拟将内容打印到那些页面尺寸.

不,我没有示例代码.
Define what a page is first. You have to define the length and width of the printable area of a page, margins, ... Once you have that, since the RichEditControl is not WYSIWYG, then you have to simulate printing the content to those page dimensions.

No, I don''t have example code.


这篇关于CRichEditControl中的页数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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