mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Call CreateMDIWindow[AW] from CreateWindowEx[AW] if WS_EX_MDICHILD style is set.
svn path=/trunk/; revision=7119
This commit is contained in:
parent
3beff4f5a3
commit
8bef76d86b
1 changed files with 13 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: window.c,v 1.89 2003/12/10 16:08:49 vizzini Exp $
|
||||
/* $Id: window.c,v 1.90 2003/12/18 16:47:27 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS user32.dll
|
||||
|
@ -419,6 +419,14 @@ CreateWindowExA(DWORD dwExStyle,
|
|||
ControlsInitialized = ControlsInit(ClassName.Buffer);
|
||||
}
|
||||
|
||||
if (dwExStyle & WS_EX_MDICHILD)
|
||||
{
|
||||
if (!IS_ATOM(lpClassName))
|
||||
RtlFreeUnicodeString(&ClassName);
|
||||
return CreateMDIWindowA(lpClassName, lpWindowName, dwStyle, x, y,
|
||||
nWidth, nHeight, hWndParent, hInstance, (LPARAM)lpParam);
|
||||
}
|
||||
|
||||
if (!RtlCreateUnicodeStringFromAsciiz(&WindowName, (PCSZ)lpWindowName))
|
||||
{
|
||||
if (!IS_ATOM(lpClassName))
|
||||
|
@ -547,6 +555,10 @@ CreateWindowExW(DWORD dwExStyle,
|
|||
ControlsInitialized = ControlsInit(lpClassName);
|
||||
}
|
||||
|
||||
if (dwExStyle & WS_EX_MDICHILD)
|
||||
return CreateMDIWindowW(lpClassName, lpWindowName, dwStyle, x, y,
|
||||
nWidth, nHeight, hWndParent, hInstance, (LPARAM)lpParam);
|
||||
|
||||
if (IS_ATOM(lpClassName))
|
||||
{
|
||||
RtlInitUnicodeString(&ClassName, NULL);
|
||||
|
|
Loading…
Reference in a new issue