【发布时间】:2010-11-22 16:49:13
【问题描述】:
我创建了一个不显示的窗口:
int main()
{
CreateWindow("SysListView32","Geek",0, 0, 0, 0, 0,NULL, NULL, (HINSTANCE)GetCurrentProcess(), NULL);
getch();
}
...在另一个进程中使用FindWindow() 找到它的句柄:
int main()
{
HWND H = FindWindow("SysListView32", "Geek");
std::cout<< "The handle of created window is : " <<H;
getch();
}
FindWindow 如何找到它的句柄?我以为它会 not 找到它,因为 process1 没有显示窗口。
我怎样才能只找到可见的个窗口?
【问题讨论】: