- NtUserSetActiveWindow now called in CreateWindowEx
authorRichard Campbell <betam4x@gmail.com>
Fri, 15 Aug 2003 10:53:16 +0000 (10:53 +0000)
committerRichard Campbell <betam4x@gmail.com>
Fri, 15 Aug 2003 10:53:16 +0000 (10:53 +0000)
svn path=/trunk/; revision=5582

reactos/subsys/win32k/ntuser/window.c
reactos/subsys/win32k/ntuser/winpos.c

index 6fe9979..b21e451 100644 (file)
@@ -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);
 }
index 85fb170..8921895 100644 (file)
@@ -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. */