mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
check class name only
This commit is contained in:
parent
df76f81956
commit
6838d2012d
@ -426,16 +426,13 @@ BOOL CALLBACK util_enum_child_proc(HWND hwnd, LPARAM lparam)
|
|||||||
pos.top);
|
pos.top);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char title[MAX_PATH] = { 0 };
|
|
||||||
GetWindowTextA(hwnd, title, sizeof(title) - 1);
|
|
||||||
|
|
||||||
char class_name[MAX_PATH] = { 0 };
|
char class_name[MAX_PATH] = { 0 };
|
||||||
GetClassNameA(hwnd, class_name, sizeof(class_name) - 1);
|
GetClassNameA(hwnd, class_name, sizeof(class_name) - 1);
|
||||||
|
|
||||||
//TRACE_EXT(" AVIWINDOW class=%s, name=%s\n", class_name, title);
|
//TRACE_EXT(" AVIWINDOW class=%s\n", class_name);
|
||||||
|
|
||||||
if (g_ddraw->fixchilds == FIX_CHILDS_DETECT_HIDE ||
|
if (g_ddraw->fixchilds == FIX_CHILDS_DETECT_HIDE ||
|
||||||
strcmp(title, "ActiveMovie Window") == 0 ||
|
strcmp(class_name, "VideoRenderer") == 0 ||
|
||||||
strcmp(class_name, "AVIWnd32") == 0 ||
|
strcmp(class_name, "AVIWnd32") == 0 ||
|
||||||
strcmp(class_name, "MCIWndClass") == 0)
|
strcmp(class_name, "MCIWndClass") == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user