detect movie windows
This commit is contained in:
parent
ad8215eee8
commit
053206b414
2 changed files with 32 additions and 10 deletions
13
src/utils.c
13
src/utils.c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue