我有一个使用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
更多推荐
模型对话框
发布评论