Only set WIN_NCACTIVATED style on toplevel windows, the WIN_NCACTIVATED
authorGé van Geldorp <ge@gse.nl>
Sat, 9 Aug 2003 21:13:14 +0000 (21:13 +0000)
committerGé van Geldorp <ge@gse.nl>
Sat, 9 Aug 2003 21:13:14 +0000 (21:13 +0000)
style clashes with one of the SS_ (static control) styles and should
be removed in the future anyway

svn path=/trunk/; revision=5496

reactos/subsys/win32k/ntuser/window.c

index 1a24014..b79a0b1 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.83 2003/08/09 18:22:11 mf Exp $
+/* $Id: window.c,v 1.84 2003/08/09 21:13:14 gvg Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -625,7 +625,11 @@ NtUserCreateWindowEx(DWORD dwExStyle,
    */
   WindowObject->Class = ClassObject;
   WindowObject->ExStyle = dwExStyle;
-  WindowObject->Style = dwStyle | WIN_NCACTIVATED;
+  WindowObject->Style = dwStyle;
+  if (0 == (dwStyle & WS_CHILD))
+    {
+      WindowObject->Style = WindowObject->Style | WIN_NCACTIVATED;
+    }
   WindowObject->x = x;
   WindowObject->y = y;
   WindowObject->Width = nWidth;