Author: jimtabor
Date: Wed Dec 12 09:12:02 2007
New Revision: 31175
URL:
http://svn.reactos.org/svn/reactos?rev=31175&view=rev
Log:
Temporarily implement GWL_HWNDPARENT in user mode.
Modified:
trunk/reactos/dll/win32/user32/windows/class.c
Modified: trunk/reactos/dll/win32/user32/windows/class.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/c…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/class.c (original)
+++ trunk/reactos/dll/win32/user32/windows/class.c Wed Dec 12 09:12:02 2007
@@ -529,6 +529,11 @@
case GWL_HWNDPARENT:
DbgPrint("GWL_HWNDPARENT\n");
/* FIXME: Implement in user32 */
+ {
+ HWND parent = GetAncestor( hWnd, GA_PARENT );
+ if (parent == GetDesktopWindow()) parent = GetWindow( hWnd, GW_OWNER );
+ return (LONG)parent;
+ }
case GWL_WNDPROC:
/* Call win32k for this as a callproc handle may need
to be created */
@@ -583,6 +588,11 @@
case GWL_HWNDPARENT:
DbgPrint("GWL_HWNDPARENT\n");
/* FIXME: Implement in user32 */
+ {
+ HWND parent = GetAncestor( hWnd, GA_PARENT );
+ if (parent == GetDesktopWindow()) parent = GetWindow( hWnd, GW_OWNER );
+ return (LONG)parent;
+ }
case GWL_WNDPROC:
/* Call win32k for this as a callproc handle may need
to be created */