模型对话框 [英] Model DialogBox

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

问题描述

我有一个使用ATL COM开发的MS Office插件.从该Office应用程序中,我正在调用MFC常规DLL,该DLL会加载一个模态对话框.

现在的问题是,它是一个模态对话框,但是对于调用此DLL的宿主应用程序,它是充当模型对话框.这就产生了很多问题.

我不想让用户在DLL项目打开时将注意力集中在Office应用程序上,而焦点应该留在作为DLL应用程序的子窗口上.我该如何搭配呢?

在此先感谢

I have an MS Office Addin developed using ATL COM. From that office application, I am calling an MFC Regular DLL, Which loads a Modal DialogBox.

Now the problem is, it is a modal dialog box, but for the host application that calls this DLL, it is acts as a modelss dialogbox. Which creates a lot of problem.

I want don't want the user to focus on the office application when the DLL project is open, the focus should remain on the child window that is the DLL application. How can I accompalish this?

Thanks in Advance

推荐答案

这可以通过设置对话框的父级来完成.只需在您的窗口中设置对话框的父级即可.调用对话框或大型机,然后全部设置
This can be done through setting the parent of the dialog. Just set the parent of the dialog with yours window  invoking the dialog  or the mainframe and then all will be set


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

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