detect movie windows

This commit is contained in:
FunkyFr3sh 2022-10-07 01:05:27 +02:00
parent ad8215eee8
commit 053206b414
2 changed files with 32 additions and 10 deletions

View file

@ -426,7 +426,18 @@ BOOL CALLBACK util_enum_child_proc(HWND hwnd, LPARAM lparam)
pos.top);
*/
if (g_ddraw->fixchilds == FIX_CHILDS_DETECT_HIDE)
char title[MAX_PATH] = { 0 };
GetWindowTextA(hwnd, title, sizeof(title) - 1);
char class_name[MAX_PATH] = { 0 };
GetClassNameA(hwnd, class_name, sizeof(class_name) - 1);
//TRACE_EXT(" AVIWINDOW class=%s, name=%s\n", class_name, title);
if (g_ddraw->fixchilds == FIX_CHILDS_DETECT_HIDE ||
strcmp(title, "ActiveMovie Window") == 0 ||
strcmp(class_name, "AVIWnd32") == 0 ||
strcmp(class_name, "MCIWndClass") == 0)
{
LONG style = real_GetWindowLongA(hwnd, GWL_EXSTYLE);