Properly set the active window frame flag. Add missing file header. Add a note in...
authorJames Tabor <james.tabor@reactos.org>
Wed, 12 Aug 2009 07:03:58 +0000 (07:03 +0000)
committerJames Tabor <james.tabor@reactos.org>
Wed, 12 Aug 2009 07:03:58 +0000 (07:03 +0000)
svn path=/trunk/; revision=42631

reactos/subsystems/win32/win32k/ntuser/defwnd.c
reactos/subsystems/win32/win32k/ntuser/event.c
reactos/subsystems/win32/win32k/ntuser/focus.c

index edb03f1..e71101c 100644 (file)
@@ -133,7 +133,7 @@ IntDefWindowProc(
          if (LOWORD(lParam))
          {
             if (wParam)
-            {
+            {//                      WNDS_HIDDENPOPUP
                if (!(Window->Flags & WIN_NEEDS_SHOW_OWNEDPOPUP)) break;
                Window->Flags &= ~WIN_NEEDS_SHOW_OWNEDPOPUP;
             }
index 22f8f7e..e1e9bcd 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * COPYRIGHT:         See COPYING in the top level directory
+ * PROJECT:           ReactOS kernel
+ * PURPOSE:           Window event handlers
+ * FILE:              subsystem/win32/win32k/ntuser/event.c
+ * PROGRAMER:         James Tabor (james.tabor@rectos.org)
+ */
 
 #include <w32k.h>
 
index 5b205a7..17fa6bd 100644 (file)
@@ -95,8 +95,12 @@ co_IntSendActivateMessages(HWND hWndPrev, HWND hWnd, BOOL MouseActivate)
          Window->Wnd->hWndLastActive = hWnd;
          if (Window->Wnd->spwndOwner)
             Window->Wnd->spwndOwner->hWndLastActive = hWnd;
+         Window->Wnd->state |= WNDS_ACTIVEFRAME;
       }
 
+      if (WindowPrev && WindowPrev->Wnd)
+         WindowPrev->Wnd->state &= ~WNDS_ACTIVEFRAME;
+
       if (Window && WindowPrev)
       {
          PWINDOW_OBJECT cWindow;