创建一个显示在父窗口上方的窗口 [英] Creating a window that shows up over the parent window
本文介绍了创建一个显示在父窗口上方的窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
让我为您解释情况. Java Applet调用了一个win32 dll. Win32 dll具有创建窗口并显示该窗口的代码.一切正常,但问题是,此窗口隐藏在浏览器(Internet Explorer)下,用户必须按Alt + Tab才能看到该窗口.
有人可以建议如何通过浏览器直接显示窗口吗?它是一种文件->在Internet Explorer上打开.
在此先感谢,
Hari
解决方案
在您的DLL中,在窗口句柄上调用SetForegroundWindow
.
请参阅 http://msdn.microsoft.com/en-us/library/ms633539(v = vs.85).aspx [ MSDN文档 [ 解决方案
In your DLL, callSetForegroundWindow
on the window handle.
See http://msdn.microsoft.com/en-us/library/ms633539(v=vs.85).aspx[^]
Do you have an access to the win32 dll code? If so, call ::SetWindowPos
to set it at the top of the Z-order. See MSDN docs[^]
In most general case, you need two Windows API calls:SetForegroundWindow
andSetActiveWindow
.
—SA
这篇关于创建一个显示在父窗口上方的窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文