如何取得目前正在操作的窗口的句柄(20分)

  • 主题发起人 主题发起人 sy0116
  • 开始时间 开始时间
S

sy0116

Unregistered / Unconfirmed
GUEST, unregistred user!
如何取得目前正在操作的窗口的句柄?即按下一热键后自动取得当前窗口(就是标题栏为蓝色的窗口)的句柄
 
GetActiveWindow[:)]<br><br>The GetActiveWindow function retrieves the window handle to the active window associated with the thread that calls the function. <br><br>HWND GetActiveWindow(VOID)<br>&nbsp;<br>Parameters<br><br>This function has no parameters. <br><br>Return Values<br><br>If the function succeeds, the return value is the handle to the active window associated with the thread that calls the function. If the calling thread does not have an active window, the return value is NULL.
 
接受答案了.
 

Similar threads

后退
顶部