mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user