
| 
 | 
|  | 作者: jhkdiy [jhkdiy]  版主 | 登录 | 
| 几个程序的窗口都打开的情况下,如何获取当前活动窗口的句柄?我用GetActiveWindow()只能对调用这个函数的程序有用呀,对其它进程的窗口没有反应,请知道的高手指教一下,谢谢。  | 
| 地主 发表时间: 04-01-08 00:51 | 
|  | 回复: TomyChen [quest]  版主 | 登录 | 
| GetForegroundWindow() 试一下这个 The GetForegroundWindow function returns a handle to the foreground window (the window with which the user is currently working). The system assigns a slightly higher priority to the thread that creates the foreground window than it does to other threads. Return Value The return value is a handle to the foreground window. The foreground window can be NULL in certain circumstances, such as when a window is losing activation | 
| B1层 发表时间: 04-01-08 08:30 | 
|  | 回复: jhkdiy [jhkdiy]  版主 | 登录 | 
| 谢谢了! | 
| B2层 发表时间: 04-01-08 23:04 | 
| 
 | 
20CN网络安全小组版权所有
Copyright ©    2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon   

粤ICP备05087286号