mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
-NtUserCreateWindowEx: Don't force WS_CHILD set, it could be WS_POPUP.
svn path=/trunk/; revision=22794
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user