[ros-diffs] [jimtabor] 31175: Temporarily implement GWL_HWNDPARENT in user mode.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Wed Dec 12 07:12:03 CET 2007


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/class.c?rev=31175&r1=31174&r2=31175&view=diff
==============================================================================
--- 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 */




More information about the Ros-diffs mailing list