我没有表现出它创建一个窗口:如何在使用FindWindow()时跳过隐藏的窗口?
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
找到它的手柄?我认为它会不是找到它,因为process1没有显示窗口。
我怎样才能找到可见 windows?
你说什么标志 – maysam 2010-11-22 17:02:53
增加了示例代码 – 2010-11-22 17:13:24