简体   繁体   English

如何将我的应用程序带到Windows顶部

[英]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.

相关问题 我怎样才能使函数恢复真假 - How can I make my function bring back true or false 如何审核我的Windows应用程序以获得正确的Unicode处理? - How can I audit my Windows application for correct Unicode handling? 如何在Visual Studio 2013中更改我的C ++应用程序的名称(该名称显示在窗口顶部)? - How can I change the name of my C++ application in Visual Studio 2013 (The name that appears at the top of the window)? 如何将我的一个应用程序 windows 保留在同一应用程序的另一个 windows 之上? - How to keep one of my application windows on top of the other windows of the same application? 如何在 Windows 应用程序中截取屏幕截图? - How can I take a screenshot in a windows application? 如何从我的应用程序中更改“使显示器变暗”和“使显示器亮度变暗”设置(Windows)? - How can I change the “Dim the display” and “Dimming display brightness” setting (Windows) from wihin my application? 显示二进制数据时如何停止Windows控制台应用程序触发蜂鸣声 - How can I stop my Windows console application triggers beeps when displaying binary data 如何从Windows笔记本电脑舒适地设计基于Linux的终端应用程序? - How can I comfortably design a Linux based terminal application from my Windows laptop? 如何将Qt应用程序主窗口始终置于Windows任务栏上方? - How can I put my Qt Application mainwindow always above the taskbar in Windows? 我如何才能为我的窗户在顶部获得空间? - How I can get space on top for my window?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM