如何在C ++中从MDI子级访问MDI表单组件 [英] how to access MDI form component from MDI child in C++

查看:67
本文介绍了如何在C ++中从MDI子级访问MDI表单组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有MDI表格和MDI儿童.如何从mdi子项访问mdi形式的数据或组件?

I have mdi form and mdi child. How to access data or component in mdi form from mdi child ?

推荐答案

如果使用C ++/CLI,请使用MdiChild类的Parent属性. /> 如果使用MFC,请使用AfxGetMainWnd函数.
If using C++/CLI use the Parent property of the MdiChild class.
If using MFC, use AfxGetMainWnd function.


这篇关于如何在C ++中从MDI子级访问MDI表单组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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