利用FindWindowEx函数如何寻找某一个IE窗口??
我想定时拷贝当前屏幕 IE浏览器上屏幕的变换,拷贝的时候,需要监测当前网页是不是最小化了,
利用查找窗口函数,找到后置在最前面,怎么使用,为什么返回的句柄总是找不到?
HWND hWnd = ::FindWindowEx(NULL,NULL,NULL,"网页名称-Microsoft Internet Explorer" );
if ( hWnd !=NULL )
{
::ShowWindow( hWnd, SW_MAXIMIZE );
::BringWindowToTop( hWnd );
::SetForegroundWindow(hWnd);
}