如何访问对话框函数表单视图SDI c ++ ?? [英] how to access dialog function form view SDI c++??

查看:57
本文介绍了如何访问对话框函数表单视图SDI c ++ ??的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个SDI应用程序。

i created an SDI application.

我在SDI中添加了一个dialog1来将View更改为分割窗口。

i added a dialog1 in SDI to change the View as a split window .

什么我想要做的是我想访问一些函数让我们说display1表单视图类的display()。我该怎么办?

what i want to do is i want to access some function lets say display() of dialog1 form view class. what can i do??

推荐答案

您好,

如果您仍在使用该代码如你的问题
https://social.msdn.microsoft.com/Forums/vstudio/en-US/371e0857-e63d-49fa-ae26-b1cdda760b32/how-to-split- window-horizo​​ntal-in-sdi-c?forum = vcgeneral

if you are still using the code as in your question https://social.msdn.microsoft.com/Forums/vstudio/en-US/371e0857-e63d-49fa-ae26-b1cdda760b32/how-to-split-window-horizontally-in-sdi-c?forum=vcgeneral

然后你可以这样看到这个视图:

Then you can get the view this way:



CWnd* pwnd = m_wndSplitter.GetView(m_n1);
if (!pwnd) return NULL;
return (CMyView1*)pwnd;




问候,Guido


Regards, Guido


这篇关于如何访问对话框函数表单视图SDI c ++ ??的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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