[ros-diffs] [jimtabor] 22794: -NtUserCreateWindowEx: Don't force WS_CHILD set, it could be WS_POPUP.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Mon Jul 3 09:52:22 CEST 2006


Author: jimtabor
Date: Mon Jul  3 11:52:22 2006
New Revision: 22794

URL: http://svn.reactos.org/svn/reactos?rev=22794&view=rev
Log:
-NtUserCreateWindowEx: Don't force WS_CHILD set, it could be WS_POPUP.

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/window.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/window.c?rev=22794&r1=22793&r2=22794&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c Mon Jul  3 11:52:22 2006
@@ -1431,11 +1431,6 @@
    ParentWindowHandle = PsGetWin32Thread()->Desktop->DesktopWindow;
    OwnerWindowHandle = NULL;
 
-   if ((!(dwStyle & WS_CHILD)) && (dwExStyle & WS_EX_MDICHILD))
-   {	   
-      dwStyle |=  WS_CHILD; // Forced Child!
-   }
-
    if (hWndParent == HWND_MESSAGE)
    {
       /*
@@ -1446,7 +1441,8 @@
    }
    else if (hWndParent)
    {
-      if ((dwStyle & (WS_CHILD | WS_POPUP)) == WS_CHILD)
+      if (((dwStyle & (WS_CHILD | WS_POPUP)) == WS_CHILD) ||
+                                        (dwExStyle & WS_EX_MDICHILD))
          ParentWindowHandle = hWndParent;
       else
       {




More information about the Ros-diffs mailing list