请问哪个函数用于检索指向任何mdichild窗口的指针? [英] Please which function is used to retrieve a pointer to any mdichild window?

查看:68
本文介绍了请问哪个函数用于检索指向任何mdichild窗口的指针?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用这个使用拆分窗口的MFC应用程序。问题是我需要获取一个指向任何MDIChild窗口的指针,这样我就可以得到一个指向任何视图的指针,这样我就可以获得一个pointe来记录来自特定函数的对象以进行某些操作。请问,我如何获得指向任何MDIChild子窗口的指针?



因为我的MdiChhild窗口中有一个分割器窗口指针,我知道一旦我得到一个指针从上述函数到mdichild窗口所有我需要做的就是在分割器窗口指针上调用GetPane。但问题是如何从任何(或给定的)函数获取指向MDC子窗口的指针?

I am working on this MFC application that uses a split window. The problem is that I need to get a pointer to any MDIChild window so that I can get a pointer to any of the views so that I can get a pointe to document object from a certain function for some operations. Please, how do I get a pointer to any MDIChild child window?

Since I have a splitter window pointer in my MdiChhild window, i know that once I get a pointer to the mdichild window from the said function all I need to do is call GetPane on the splitter window pointer.But the question is "How do I get the pointer to the MDC child window from any( or a given) function?

推荐答案

请阅读谢尔盖对你的问题的评论。我同意他的意见。



但是,如果你还想要要使用MDI窗口,请查看此处: EnumChildWindows功能 [ ^ ]
Please, read Sergey's comment to your question. I agree with Him.

But, if you still want to act with MDI windows, have a look here: EnumChildWindows function[^]


这篇关于请问哪个函数用于检索指向任何mdichild窗口的指针?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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