[英]How Can I bring my application to the Top of windows
如果我有两个同时运行的应用程序App1.exe和App2.exe,我想在按App1.exe中的按钮时带上App2.exe。
Use FindWindow to retrieve the window-handle of your app2.exe window and then use BringWindowToTop on that handle. 使用FindWindow检索app2.exe窗口的窗口句柄,然后在该句柄上使用BringWindowToTop 。
You can find an (VB) example here: http://support.microsoft.com/kb/186431 您可以在这里找到一个(VB)示例: http : //support.microsoft.com/kb/186431
Use BringWindowToTop . 使用BringWindowToTop 。 If you need to find the window handle first, use FindWindow . 如果需要先查找窗口句柄,请使用FindWindow 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.