From bef2c32a89c0cc3265c6dc7ba3a67d59517ee568 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Sun, 23 Jul 2006 18:12:19 +0000 Subject: [PATCH] * use supplied parent window handle when class is of type system * this is temp hack for getting edit controls with notification windows going * reduces user32_winetest.exe from 43 to 2 total faults svn path=/trunk/; revision=23251 --- reactos/subsystems/win32/win32k/ntuser/window.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/reactos/subsystems/win32/win32k/ntuser/window.c b/reactos/subsystems/win32/win32k/ntuser/window.c index 7dde611fe73..cd4f306af49 100644 --- a/reactos/subsystems/win32/win32k/ntuser/window.c +++ b/reactos/subsystems/win32/win32k/ntuser/window.c @@ -1508,6 +1508,17 @@ co_IntCreateWindowEx(DWORD dwExStyle, RETURN(NULL); } + if (Class->System) + { + if (hWndParent) + { + /* HACK + * use supplied window handle for notifications + */ + ParentWindowHandle = hWndParent; + } + } + WinSta = PsGetCurrentThreadWin32Thread()->Desktop->WindowStation; //FIXME: Reference thread/desktop instead