From 1c8bc47bcceda3cc2c452a1de6ef03a5b4225ba5 Mon Sep 17 00:00:00 2001 From: Richard Campbell Date: Fri, 15 Aug 2003 10:53:16 +0000 Subject: [PATCH] - NtUserSetActiveWindow now called in CreateWindowEx svn path=/trunk/; revision=5582 --- reactos/subsys/win32k/ntuser/window.c | 16 +++++----------- reactos/subsys/win32k/ntuser/winpos.c | 4 +++- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/window.c b/reactos/subsys/win32k/ntuser/window.c index 6fe99797ce2..b21e4517416 100644 --- a/reactos/subsys/win32k/ntuser/window.c +++ b/reactos/subsys/win32k/ntuser/window.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: window.c,v 1.92 2003/08/15 02:51:53 silverblade Exp $ +/* $Id: window.c,v 1.93 2003/08/15 10:53:16 rcampbell Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -678,15 +678,7 @@ NtUserCreateWindowEx(DWORD dwExStyle, WindowObject->ExStyle = dwExStyle; WindowObject->Style = dwStyle; DbgPrint("1: Style is now %d\n", WindowObject->Style); - - if (0 == (dwStyle & WS_CHILD)) - { - WindowObject->Flags |= WIN_NCACTIVATED; - - // THIS MESSES UP BUTTONS: WIN_NCACTIVATED == BS_BITMAP ! - WindowObject->Style = WindowObject->Style | WIN_NCACTIVATED; - DbgPrint("2: Style is now %d\n", WindowObject->Style); - } + WindowObject->x = x; WindowObject->y = y; WindowObject->Width = nWidth; @@ -922,7 +914,9 @@ NtUserCreateWindowEx(DWORD dwExStyle, DPRINT("NtUserCreateWindow(): About to show window\n"); WinPosShowWindow(WindowObject->Self, dwShowMode); } - + /* FIXME: Should code be reworked to accomodate the following line? */ + DbgPrint("Setting Active Window to %d\n\n\n",WindowObject->Self); + NtUserSetActiveWindow(WindowObject->Self); DPRINT("NtUserCreateWindow(): = %X\n", Handle); return((HWND)Handle); } diff --git a/reactos/subsys/win32k/ntuser/winpos.c b/reactos/subsys/win32k/ntuser/winpos.c index 85fb1709058..89218956319 100644 --- a/reactos/subsys/win32k/ntuser/winpos.c +++ b/reactos/subsys/win32k/ntuser/winpos.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: winpos.c,v 1.23 2003/08/11 21:10:49 royce Exp $ +/* $Id: winpos.c,v 1.24 2003/08/15 10:53:16 rcampbell Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -1249,6 +1249,8 @@ WinPosSetActiveWindow(PWINDOW_OBJECT Window, BOOL Mouse, BOOL ChangeFocus) { ActiveQueue->ActiveWindow = NULL; } + /* FIXME: Unset this flag for inactive windows */ + //if ((Window->Style) & WS_CHILD) Window->Flags |= WIN_NCACTIVATED; /* FIXME: Send palette messages. */