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/ntu... ============================================================================== --- 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 {