From 7f5d1e97f4d4d4fba0411f59dfda642f4b76a406 Mon Sep 17 00:00:00 2001 From: Richard Campbell Date: Tue, 4 Mar 2003 22:34:48 +0000 Subject: [PATCH] Implemented MoveWindow, won't work until SetWindowPos is fixed. svn path=/trunk/; revision=4242 --- 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 a148a902177..95827a449be 100644 --- a/reactos/lib/user32/windows/window.c +++ b/reactos/lib/user32/windows/window.c @@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.16 2002/11/10 18:17:40 chorns Exp $ +/* $Id: window.c,v 1.17 2003/03/04 22:34:48 rcampbell Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS user32.dll @@ -774,7 +774,10 @@ MoveWindow(HWND hWnd, int nHeight, WINBOOL bRepaint) { - return FALSE; + int flags = SWP_NOZORDER | SWP_NOACTIVATE; + if (!bRepaint) flags |= SWP_NOREDRAW; + return SetWindowPos( hWnd, 0, X, Y, nWidth, nHeight, SWP_NOZORDER | + SWP_NOACTIVATE | bRepaint ? SWP_NOREDRAW : 0 ); } WINBOOL STDCALL