mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:12:57 +00:00
[USER32] Relax conditions for creating MDI windows (#2454)
The creation conditions of MDI window was too strict. CORE-15633
This commit is contained in:
parent
fc4c4d4911
commit
8c5308b5e8
1 changed files with 4 additions and 2 deletions
|
@ -411,7 +411,7 @@ CreateWindowExA(DWORD dwExStyle,
|
||||||
if (pWndParent->fnid != FNID_MDICLIENT) // wine uses WIN_ISMDICLIENT
|
if (pWndParent->fnid != FNID_MDICLIENT) // wine uses WIN_ISMDICLIENT
|
||||||
{
|
{
|
||||||
WARN("WS_EX_MDICHILD, but parent %p is not MDIClient\n", hWndParent);
|
WARN("WS_EX_MDICHILD, but parent %p is not MDIClient\n", hWndParent);
|
||||||
return NULL;
|
goto skip_mdi;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* lpParams of WM_[NC]CREATE is different for MDI children.
|
/* lpParams of WM_[NC]CREATE is different for MDI children.
|
||||||
|
@ -477,6 +477,7 @@ CreateWindowExA(DWORD dwExStyle,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
skip_mdi:
|
||||||
hwnd = User32CreateWindowEx(dwExStyle,
|
hwnd = User32CreateWindowEx(dwExStyle,
|
||||||
lpClassName,
|
lpClassName,
|
||||||
lpWindowName,
|
lpWindowName,
|
||||||
|
@ -536,7 +537,7 @@ CreateWindowExW(DWORD dwExStyle,
|
||||||
if (pWndParent->fnid != FNID_MDICLIENT)
|
if (pWndParent->fnid != FNID_MDICLIENT)
|
||||||
{
|
{
|
||||||
WARN("WS_EX_MDICHILD, but parent %p is not MDIClient\n", hWndParent);
|
WARN("WS_EX_MDICHILD, but parent %p is not MDIClient\n", hWndParent);
|
||||||
return NULL;
|
goto skip_mdi;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* lpParams of WM_[NC]CREATE is different for MDI children.
|
/* lpParams of WM_[NC]CREATE is different for MDI children.
|
||||||
|
@ -602,6 +603,7 @@ CreateWindowExW(DWORD dwExStyle,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
skip_mdi:
|
||||||
hwnd = User32CreateWindowEx(dwExStyle,
|
hwnd = User32CreateWindowEx(dwExStyle,
|
||||||
(LPCSTR)lpClassName,
|
(LPCSTR)lpClassName,
|
||||||
(LPCSTR)lpWindowName,
|
(LPCSTR)lpWindowName,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue