mirror of
https://github.com/reactos/reactos.git
synced 2025-07-05 11:51:22 +00:00
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:
parent
9d2a032c20
commit
c85e511160
3 changed files with 12 additions and 1 deletions
|
@ -133,7 +133,7 @@ IntDefWindowProc(
|
||||||
if (LOWORD(lParam))
|
if (LOWORD(lParam))
|
||||||
{
|
{
|
||||||
if (wParam)
|
if (wParam)
|
||||||
{
|
{// WNDS_HIDDENPOPUP
|
||||||
if (!(Window->Flags & WIN_NEEDS_SHOW_OWNEDPOPUP)) break;
|
if (!(Window->Flags & WIN_NEEDS_SHOW_OWNEDPOPUP)) break;
|
||||||
Window->Flags &= ~WIN_NEEDS_SHOW_OWNEDPOPUP;
|
Window->Flags &= ~WIN_NEEDS_SHOW_OWNEDPOPUP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
#include <w32k.h>
|
||||||
|
|
||||||
|
|
|
@ -95,8 +95,12 @@ co_IntSendActivateMessages(HWND hWndPrev, HWND hWnd, BOOL MouseActivate)
|
||||||
Window->Wnd->hWndLastActive = hWnd;
|
Window->Wnd->hWndLastActive = hWnd;
|
||||||
if (Window->Wnd->spwndOwner)
|
if (Window->Wnd->spwndOwner)
|
||||||
Window->Wnd->spwndOwner->hWndLastActive = hWnd;
|
Window->Wnd->spwndOwner->hWndLastActive = hWnd;
|
||||||
|
Window->Wnd->state |= WNDS_ACTIVEFRAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (WindowPrev && WindowPrev->Wnd)
|
||||||
|
WindowPrev->Wnd->state &= ~WNDS_ACTIVEFRAME;
|
||||||
|
|
||||||
if (Window && WindowPrev)
|
if (Window && WindowPrev)
|
||||||
{
|
{
|
||||||
PWINDOW_OBJECT cWindow;
|
PWINDOW_OBJECT cWindow;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue