模式对话框上的无模式对话框. [英] Modeless dialog over modal dialog.

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

问题描述

(可能无法直接实现).

我有一个MFC应用程序(App),我打开了一个模式对话框( MainDialog ),因此该应用程序不可用于输入(正常行为).

是否可以打开 MainDialog 的子对话框( ChildDialog ),而该子对话框对应用程序可能是无模式的(有效覆盖父对话框的模式状态)?

App-> MainDialog(App的模态)> ChildDialog(App的模态)

还是我绝对必须拥有一个无模式的对话框链?

App-> MainDialog(对App无模式)> ChildDialog(对App无模式)

没什么大不了的改变,我只是想知道是否有更好的方法来做到这一点.

谢谢.

(probably not directly possible).

I have a MFC application (App), I open a modal dialog (MainDialog), so the application is not available for input (normal behaviour).

Is it possible to open a child dialog (ChildDialog) of MainDialog that could be modeless to the application (effectively overwrite the modal state of the parent dialog) ?

App->MainDialog(modal to App)>ChildDialog(modeless to App)

Or I absolutly have to have a modeless dialog chain?

App->MainDialog(modeless to App)>ChildDialog(modeless to App)

No biggie making the changes, I was just wondering if there was a better way of doing this.

Thanks.

推荐答案

答案是肯定的,你可以做到.

无模式对话框上有很多文章.

如果模式对话框是父级对话框,请确保并清除销毁的无模式对话框.
The answer is yes, you can do that.

There are many articles available on modeless dialogs.

If the modal dialog is the parent, be sure and clean up the modeless dialog on destroy.


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

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