如何使用对话框模板(不是Doc/View方法)-"ModeLess对话框"创建MFC MDI子窗口?或其他窗口? [英] How to create an MFC MDI Child window using a dialog template (Not a Doc/View approach) - ?ModeLess Dialog? or some other window?

查看:314
本文介绍了如何使用对话框模板(不是Doc/View方法)-"ModeLess对话框"创建MFC MDI子窗口?或其他窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好
请问有人可以使用对话框模板来创建MFC MDI子窗口(不是文档/视图方法)吗?

所以我需要一个基于对话框模板的MFC子窗口它将作为MDI子窗口,将被限制在主框架窗口的客户区域内.

Thanx
NAngelGr

Hi there
could someone help on creating an MFC MDI Child window (NOT A Doc/View approach) using a dialog template?

So I need an dialog template based MFC child window that will be acting as an MDI child window that will be restricted within the client area of the main frame window 

Thanx
NAngelGr

推荐答案

您可以使用 CFormView 作为视图类的基础.您必须在构造函数中指定对话框模板资源名称或ID,然后视图将显示您的对话框模板并充当std. MDI子级.

You can use CFormView as base for your view class. You'll have to specify the dialog template resource name or ID in constructor and the view will display your dialog template and will act as std. MDI child.


这篇关于如何使用对话框模板(不是Doc/View方法)-"ModeLess对话框"创建MFC MDI子窗口?或其他窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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