在MDI App中打开新视图 [英] Open a new view in MDI App

查看:149
本文介绍了在MDI App中打开新视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我创建了一个MDI应用程序,在其中添加了一个菜单以打开不同的表单/视图.
在菜单单击事件上,我想打开单击的窗体/视图.任何人都可以提供帮助.
我正在使用AddDocument(),但是它没有用.
我尝试过OpenDocumentFile(),但是找不到指定的表单/视图.
要使用OpenDocumentFile(),如何设置表单/视图名称?

预先感谢.

Hello Friends,

I have created a MDI App, where I added a menu to open different forms/view.
On menu click event I want to open clicked form/view. Anyone can help in this.
I am using AddDocument(), but it is not usefull.
I tried OpenDocumentFile()but, it''s not finding specified form/view.
To use OpenDocumentFile(), How do I set form/view name?

Thanks in advance.

推荐答案

啊! MFC的荣耀. CP上有很多文章.有许多文章向您展示如何使用多个视图.看看此处 [ ^ ]
Ah! the glory of MFC. There is wealth of articles, here at CP. There are a number of articles that show you how to work with multiple views. Take a look Here[^]


这篇关于在MDI App中打开新视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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