From 2c77bbfae2a3805a74a9e67eef09e4dee77eac2c Mon Sep 17 00:00:00 2001 From: Richard Campbell Date: Tue, 18 Mar 2003 07:01:09 +0000 Subject: [PATCH] Implemented CloseWindow() svn path=/trunk/; revision=4335 --- reactos/lib/user32/windows/window.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reactos/lib/user32/windows/window.c b/reactos/lib/user32/windows/window.c index fd1d8064fc0..f7dfccf4647 100644 --- a/reactos/lib/user32/windows/window.c +++ b/reactos/lib/user32/windows/window.c @@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.24 2003/03/18 06:46:10 rcampbell Exp $ +/* $Id: window.c,v 1.25 2003/03/18 07:01:09 rcampbell Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS user32.dll @@ -238,7 +238,10 @@ ChildWindowFromPointEx(HWND hwndParent, WINBOOL STDCALL CloseWindow(HWND hWnd) { - return FALSE; + SendMessageA(hWnd, WM_CLOSE, 0, 0); + SendMessageA(hWnd, WM_SYSCOMMAND, SC_CLOSE, 0); + + return (WINBOOL)(hWnd); } HWND STDCALL