Properly set the active window frame flag. Add missing file header. Add a note in defwnd.c.

svn path=/trunk/; revision=42631
This commit is contained in:
James Tabor 2009-08-12 07:03:58 +00:00
parent 9d2a032c20
commit c85e511160
3 changed files with 12 additions and 1 deletions

View 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;
}

View 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>

View 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;