NtUserReleaseDC(HWND hWnd, HDC hDc);
BOOL STDCALL
NtUserGetWindowRect(HWND hWnd, LPRECT Rect);
+BOOL STDCALL
+NtUserGetClientRect(HWND hWnd, LPRECT Rect);
HANDLE STDCALL
NtUserGetProp(HWND hWnd, ATOM Atom);
BOOL STDCALL
-/* $Id: window.c,v 1.17 2003/03/04 22:34:48 rcampbell Exp $
+/* $Id: window.c,v 1.18 2003/03/06 21:03:49 gvg Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS user32.dll
WINBOOL STDCALL
GetClientRect(HWND hWnd, LPRECT lpRect)
{
- return FALSE;
+ return(NtUserGetClientRect(hWnd, lpRect));
}
HWND STDCALL
-/* $Id: window.c,v 1.23 2003/03/04 00:39:56 rcampbell Exp $
+/* $Id: window.c,v 1.24 2003/03/06 21:03:49 gvg Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES ******************************************************************/
#include <ddk/ntddk.h>
+#include <internal/safe.h>
#include <win32k/win32k.h>
#include <include/object.h>
#include <include/guicheck.h>
return(W32kGetWindowRect(hWnd, Rect));
}
+BOOL STDCALL
+NtUserGetClientRect(HWND hWnd, LPRECT Rect)
+{
+ PWINDOW_OBJECT WindowObject;
+ RECT SafeRect;
+
+ WindowObject = W32kGetWindowObject(hWnd);
+ if (WindowObject == NULL)
+ {
+ return(FALSE);
+ }
+ W32kGetClientRect(WindowObject, &SafeRect);
+ if (! NT_SUCCESS(MmCopyToCaller(Rect, &SafeRect, sizeof(RECT))))
+ {
+ return(FALSE);
+ }
+
+ W32kReleaseWindowObject(WindowObject);
+ return(TRUE);
+}
+
HWND
W32kGetActiveWindow(VOID)
{