如何将一个CFormView插入到基于对话框的MFC应用程序中作为控件 [英] How to insert one CFormView into a Dialog Based MFC Application as a control

查看:129
本文介绍了如何将一个CFormView插入到基于对话框的MFC应用程序中作为控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将一个CFormView作为控件插入到基于对话框的MFC应用程序中?

我想在对话框中显示实际大小的位图并可以滚动~~所以我想将位图放置在CFormView中,但是我不知道如何将CFormView添加到对话框中~~

谢谢~~

How to insert one CFormView into a Dialog Based MFC Application as a control?

I want to display a bitmap in real size in the Dialog and could be scrolled~~So I want to place the bitmap in the CFormView,but i dont konw how to add the CFormView to the dialog~~

Thanks~~

推荐答案

^ ]


并不是很简单,因为没有使CDialogs承载视图控件(您应该制作一个该功能的SDI或MDI应用程序),但其他人已经做到了.

这是一篇文章(我相信您可以通过搜索找到更多内容):
使用自定义控件在对话框中插入文档/框架/视图 [
That''s not very simple since CDialogs weren''t made to host a view control (you''re supposed to make an SDI or MDI application for that functionality), but others have done it.

Here''s an article (I''m sure you can find more by searching):
Inserting a Doc/Frame/View in a dialog using a custom control[^]

...There was also one on how to convert a dialog application to SDI, but I can''t seem to find it...


我相信您真正需要的是可滚动的子对话框.
看看这个-
如何实现可滚动子对话框 [
I believe what you really need is a scrollable child dialog.
Take a look at this - How to implement a scrollable child dialog[^]


这篇关于如何将一个CFormView插入到基于对话框的MFC应用程序中作为控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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