将其他视图类添加到现有的MFC SDI应用程序 [英] Add an additional View Class to an existing MFC SDI Application

查看:89
本文介绍了将其他视图类添加到现有的MFC SDI应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我有一个MFC SDI应用程序,该应用程序具有与之关联的常规Document和View类.我试图在此SDI应用程序中合并另一个视图,当从菜单中将其选择为选项时将显示该视图.谁能建议我如何将这个新的View类链接到从菜单中选择该选项时显示的现有SDI应用程序?现在已经搜索了很长时间,还没有找出最好的方法.

在此先感谢.

Hello,

I have an MFC SDI Application that has the usual Document and View class associated with it. I am trying to incorporate another View in this SDI Application that will be displayed when selected as an option from the Menu. Could anyone suggest on how do I link this new View class to my existing SDI application that gets displayed when the option is selected from the menu? Have been searching for quite sometime now and haven''t been able to figure out the best way to do this.

Thanks in advance.

推荐答案

[ ^ ]是MSDN上的一篇很棒的文章,可让您开始像专业人士一样添加视图.

-DrB
Here[^] is a great article on MSDN to get you started adding views like a pro.

-DrB


CDocument::AddView


这篇关于将其他视图类添加到现有的MFC SDI应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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