用GetFocus和GetActiveWindow,返回的句柄都是0000000
代码如下
#include <iostream>
#include <Windows.h>
#include <stdio.h>
#include <string.h>
int main()
{
HWND hq = GetActiveWindow();
std::cout<<hq<<std::endl;
return 0;
}
--
修改:gaofei FROM 210.30.193.*
FROM 210.30.193.*