更改模式对话框的父级 [英] Change parent of modal dialog

查看:147
本文介绍了更改模式对话框的父级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以更改模式对话框的父级?

我通过从发布的用户消息中调用DoModal()从应用程序创建了一个对话框,但是意外地,该对话框的父级不是该应用程序的主窗口.父窗口是另一个应用程序的窗口.

实际上,有两个应用程序是嵌入容器中的Active Document Server.

谢谢
Radhakrishnan G.

Is there any possibility of changing the parent of a modal dialog?

I created a dialog from an application by calling DoModal() from a posted user message, But unexpectedly the parent of that dialog is not the main window of that application. Parent window is another application''s window.

Actually two applications are Active document servers embeded in a container.

Thanks
Radhakrishnan G.

推荐答案

更改父级是什么意思.您可以使用对话框的结果在父窗口中更改值,但我怀疑这不是您的问题.请澄清.
What do you mean by change the parent. You can use the results of your dialog to change values in the parent window but I suspect that is not your question. Please clarify.


我想您可以使用此功能:

SetParent [
I suppose you could use this:

SetParent[^]

It should do exactly what you want.


这篇关于更改模式对话框的父级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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