mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 08:13:00 +00:00
[NtUser]
- Finally fix ATI tests. Break through while testing User32:win.c:test_window_from_point. See CORE-6551. - If any trouble, please create a new Jira report. svn path=/trunk/; revision=66074
This commit is contained in:
parent
571af394cd
commit
6362e14265
2 changed files with 9 additions and 8 deletions
|
@ -150,7 +150,7 @@ co_IntSendActivateMessages(PWND WindowPrev, PWND Window, BOOL MouseActivate, BOO
|
|||
HWND *phwndTopLevel, *phwndCurrent;
|
||||
PWND pwndCurrent, pwndDesktop;
|
||||
|
||||
pwndDesktop = UserGetDesktopWindow();
|
||||
pwndDesktop = co_GetDesktopWindow(Window);//UserGetDesktopWindow();
|
||||
if (Window->spwndParent == pwndDesktop )
|
||||
{
|
||||
phwndTopLevel = IntWinListChildren(pwndDesktop);
|
||||
|
@ -168,8 +168,9 @@ co_IntSendActivateMessages(PWND WindowPrev, PWND Window, BOOL MouseActivate, BOO
|
|||
ExFreePool(phwndTopLevel);
|
||||
}
|
||||
}
|
||||
}
|
||||
////
|
||||
}
|
||||
|
||||
OldTID = WindowPrev ? IntGetWndThreadId(WindowPrev) : NULL;
|
||||
NewTID = Window ? IntGetWndThreadId(Window) : NULL;
|
||||
ptiOld = WindowPrev ? WindowPrev->head.pti : NULL;
|
||||
|
@ -245,7 +246,7 @@ co_IntSendActivateMessages(PWND WindowPrev, PWND Window, BOOL MouseActivate, BOO
|
|||
(WPARAM)(Window == (gpqForeground ? gpqForeground->spwndActive : NULL)),
|
||||
0); //(LPARAM)hWndPrev);
|
||||
|
||||
co_IntSendMessageNoWait( UserHMGetHandle(Window),
|
||||
co_IntSendMessage( UserHMGetHandle(Window),
|
||||
WM_ACTIVATE,
|
||||
MAKEWPARAM(MouseActivate ? WA_CLICKACTIVE : WA_ACTIVE, Window->style & WS_MINIMIZE),
|
||||
(LPARAM)(WindowPrev ? UserHMGetHandle(WindowPrev) : 0));
|
||||
|
@ -528,7 +529,7 @@ co_IntSetForegroundAndFocusWindow(
|
|||
else
|
||||
{
|
||||
//ERR("Activate Not same PQ and WQ and Wnd.\n");
|
||||
co_IntSendMessageNoWait(hWnd, WM_ASYNC_SETACTIVEWINDOW, (WPARAM)Wnd, (LPARAM)MouseActivate );
|
||||
co_IntSendMessage(hWnd, WM_ASYNC_SETACTIVEWINDOW, (WPARAM)Wnd, (LPARAM)MouseActivate );
|
||||
Ret = TRUE;
|
||||
}
|
||||
return Ret && fgRet;
|
||||
|
|
|
@ -1111,7 +1111,7 @@ IntSendTo(PWND Window, PTHREADINFO ptiCur, UINT Msg)
|
|||
if ( ptiCur )
|
||||
{
|
||||
if (!Window ||
|
||||
Window->head.pti->MessageQueue == ptiCur->MessageQueue )
|
||||
Window->head.pti == ptiCur )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue