FindWindow("#32770","1--窗口");
FindWindow("#32770","2--窗口");
FindWindow("#32770","3--窗口");我要判断是否存在x--窗口,如何实现呢?(x=1,2,3)
FindWindow("#32770","2--窗口");
FindWindow("#32770","3--窗口");我要判断是否存在x--窗口,如何实现呢?(x=1,2,3)
if (NULL != hWnd)
{
::SendMessage(hWnd, 32980, 0, 0);
}
取得Titel;
strcmp;
现在我程序就是要判断这种窗口是否已经存在了,findwindow改怎么写呢?
void Get()
{
char strTitle[80];
HWND hwnd=NULL;
HWND AfterHwnd = NULL;
while(true)
{
hwnd=::FindWindowEx(NULL,AfterHwnd,(LPCSTR)"#32770",NULL);
if(!hwnd)
break;
else
{
if(::GetWindowText(hwnd,strTitle,80))
if(strstr(strTitle,"--对话框")!=0)
{
//找到窗口后的操作
}
}
AfterHwnd = hwnd;
}
}