Author: jimtabor
Date: Wed Aug 12 09:03:58 2009
New Revision: 42631
URL:
http://svn.reactos.org/svn/reactos?rev=42631&view=rev
Log:
Properly set the active window frame flag. Add missing file header. Add a note in
defwnd.c.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/defwnd.c
trunk/reactos/subsystems/win32/win32k/ntuser/event.c
trunk/reactos/subsystems/win32/win32k/ntuser/focus.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/defwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/defwnd.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/defwnd.c [iso-8859-1] Wed Aug 12 09:03:58
2009
@@ -133,7 +133,7 @@
if (LOWORD(lParam))
{
if (wParam)
- {
+ {// WNDS_HIDDENPOPUP
if (!(Window->Flags & WIN_NEEDS_SHOW_OWNEDPOPUP)) break;
Window->Flags &= ~WIN_NEEDS_SHOW_OWNEDPOPUP;
}
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/event.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/event.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/event.c [iso-8859-1] Wed Aug 12 09:03:58
2009
@@ -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(a)rectos.org)
+ */
#include <w32k.h>
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/focus.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/focus.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/focus.c [iso-8859-1] Wed Aug 12 09:03:58
2009
@@ -95,7 +95,11 @@
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)
{