From 8bef76d86ba65d2ceeb8c6b4e8b9bf6a06020970 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Thu, 18 Dec 2003 16:47:27 +0000 Subject: [PATCH] Call CreateMDIWindow[AW] from CreateWindowEx[AW] if WS_EX_MDICHILD style is set. svn path=/trunk/; revision=7119 --- reactos/lib/user32/windows/window.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/reactos/lib/user32/windows/window.c b/reactos/lib/user32/windows/window.c index d55fcdad10c..6e242c5d356 100644 --- a/reactos/lib/user32/windows/window.c +++ b/reactos/lib/user32/windows/window.c @@ -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);