-NtUserCreateWindowEx: Don't force WS_CHILD set, it could be WS_POPUP.

svn path=/trunk/; revision=22794
This commit is contained in:
James Tabor 2006-07-03 07:52:22 +00:00
parent 5167c901d3
commit f638f11734

View file

@ -1431,11 +1431,6 @@ co_IntCreateWindowEx(DWORD dwExStyle,
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 @@ co_IntCreateWindowEx(DWORD dwExStyle,
}
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
{