模型对话框

编程入门 行业动态 更新时间:2024-10-10 21:26:44
本文介绍了模型对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个使用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

更多推荐

模型对话框

本文发布于:2023-11-28 03:49:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1640840.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:对话框   模型

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!