mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
-NtUserCreateWindowEx: Don't force WS_CHILD set, it could be WS_POPUP.
svn path=/trunk/; revision=22794
This commit is contained in:
parent
5167c901d3
commit
f638f11734
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue