问题描述
我有一个使用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
推荐答案
这篇关于模型对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!