Implemented CloseWindow()

svn path=/trunk/; revision=4335
This commit is contained in:
Richard Campbell 2003-03-18 07:01:09 +00:00
parent 6952a4bc36
commit 2c77bbfae2

View file

@ -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 * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS user32.dll * PROJECT: ReactOS user32.dll
@ -238,7 +238,10 @@ ChildWindowFromPointEx(HWND hwndParent,
WINBOOL STDCALL WINBOOL STDCALL
CloseWindow(HWND hWnd) CloseWindow(HWND hWnd)
{ {
return FALSE; SendMessageA(hWnd, WM_CLOSE, 0, 0);
SendMessageA(hWnd, WM_SYSCOMMAND, SC_CLOSE, 0);
return (WINBOOL)(hWnd);
} }
HWND STDCALL HWND STDCALL