我的CWinApp对象如何在doc / view架构程序中获得对框架窗口对象的访问权限?(新增) [英] How can my CWinApp object gain access to the frame window object in a doc/view architecture program?(New)

查看:80
本文介绍了我的CWinApp对象如何在doc / view架构程序中获得对框架窗口对象的访问权限?(新增)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的CWinApp对象如何在doc / view架构程序中获得对框架窗口的访问权限?



我知道CWinApp成员m_pMainWin拥有指向主窗口,如果未使用doc / view体系结构。但我真的不知道如何进入doc视图架构程序.Google和文档阅读已经提供了任何帮助。

How can my CWinApp object gain access to the frame window in a doc/view architecture program?

I know that the CWinApp member m_pMainWin holds a pointer to the main window if the doc/view architecture is not used. But I really don't know how to get in a doc view architecture program.Googling and documentation reading has nog offered any help.

推荐答案

如果我没记错的话,MFC应用程序在 m_pMainWnd 变量中保存应用程序的窗口句柄,您可以通过 AfxGetMainWnd [ ^ ]。
If I remember correctly, MFC apps save the application's window handle in the m_pMainWnd variable, which you can access via AfxGetMainWnd[^].


这篇关于我的CWinApp对象如何在doc / view架构程序中获得对框架窗口对象的访问权限?(新增)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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