QString string1 = "标题"; HWND hJoin = FindWindow(NULL, string1.toLocal8Bit());//找窗口句柄 DWORD dwStyle = (DWORD)GetWindowLong(hJoin, GWL_STYLE); while(dwStyle == 0x86000000) { hJoin = FindWindowEx(NULL, hJoin, NULL, string1.toLocal8Bit()); dwStyle = (DWORD)GetWindowLong(hJoin, GWL_STYLE); }
时间: 2024-10-28 15:07:15