将MFC控件绘制到我的CDC中 [英] Paint MFC control into my CDC

查看:100
本文介绍了将MFC控件绘制到我的CDC中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一些类.这将是许多CRichEditCtrl类的列表.我不能只使用一个RichEdit,因为列表将是虚拟的,并且RichEdits(消息)中将显示很多项目.因此,要实现它,我需要(我认为我需要)至少将RichEdits绘制到内存DC中,以计算列表项的大小.或者,也许还有另一种方法?

I''m trying to create some class. It will be a list of many CRichEditCtrl classes. I can''t use the only one RichEdit because list will a virtual and there will be a lot of items to display in RichEdits (messages). So to accomplish it, I need (I think that I need ) to paint RichEdits into memory DC at least to calculate the size for a list item. Or maybe there is another way to do that?

推荐答案

我发现一些方法非常接近-
I found some very close - Using Windowless RichEdit Controls. Any ideas how to do a virtual list of richedits?


这篇关于将MFC控件绘制到我的CDC中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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