From c85e511160192c018bb45d56a4172facc6b3785b Mon Sep 17 00:00:00 2001 From: James Tabor Date: Wed, 12 Aug 2009 07:03:58 +0000 Subject: [PATCH] Properly set the active window frame flag. Add missing file header. Add a note in defwnd.c. svn path=/trunk/; revision=42631 --- reactos/subsystems/win32/win32k/ntuser/defwnd.c | 2 +- reactos/subsystems/win32/win32k/ntuser/event.c | 7 +++++++ reactos/subsystems/win32/win32k/ntuser/focus.c | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/defwnd.c b/reactos/subsystems/win32/win32k/ntuser/defwnd.c index edb03f1c1ed..e71101c79de 100644 --- a/reactos/subsystems/win32/win32k/ntuser/defwnd.c +++ b/reactos/subsystems/win32/win32k/ntuser/defwnd.c @@ -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; } diff --git a/reactos/subsystems/win32/win32k/ntuser/event.c b/reactos/subsystems/win32/win32k/ntuser/event.c index 22f8f7e9a7c..e1e9bcdc4e4 100644 --- a/reactos/subsystems/win32/win32k/ntuser/event.c +++ b/reactos/subsystems/win32/win32k/ntuser/event.c @@ -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 diff --git a/reactos/subsystems/win32/win32k/ntuser/focus.c b/reactos/subsystems/win32/win32k/ntuser/focus.c index 5b205a77ee9..17fa6bdc7d4 100644 --- a/reactos/subsystems/win32/win32k/ntuser/focus.c +++ b/reactos/subsystems/win32/win32k/ntuser/focus.c @@ -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;