- Use the same style for get messages in nonclient.
- Remove bit checks left over from testing. Fix CORE-10086.

svn path=/trunk/; revision=68920
This commit is contained in:
James Tabor 2015-09-02 23:06:19 +00:00
parent 4921df2054
commit edef1feae7
2 changed files with 9 additions and 14 deletions

View file

@ -2013,16 +2013,6 @@ co_MsqWaitForNewMessages(PTHREADINFO pti, PWND WndFilter,
IntCoalesceMouseMove(pti);
}
if ( pti->nCntsQBits[QSRosMouseButton] != 0 ||
pti->nCntsQBits[QSRosMouseMove] != 0 ||
pti->nCntsQBits[QSRosKey] != 0 ||
pti->nCntsQBits[QSRosSendMessage] != 0 ||
pti->nCntsQBits[QSRosPostMessage] != 0 )
{
TRACE("No time to wait!\n");
return ret;
}
UserLeaveCo();
ZwYieldExecution(); // Let someone else run!

View file

@ -497,7 +497,13 @@ DefWndDoSizeMove(PWND pwnd, WORD wParam)
// Only the windows that overlap will be redrawn.
if (RECTL_bIntersectRect( &rect, &pwnd->rcWindow, &pwndTemp->rcWindow ))
{
co_UserRedrawWindow( pwndTemp, NULL, NULL, RDW_UPDATENOW | RDW_ALLCHILDREN);
if (pwnd->head.pti == pwndTemp->head.pti)
co_UserRedrawWindow( pwndTemp, NULL, NULL, RDW_UPDATENOW | RDW_NOCHILDREN);
else
{
ERR("Not Same Thread!\n");
co_UserRedrawWindow( pwndTemp, NULL, NULL, RDW_INVALIDATE | RDW_ALLCHILDREN);
}
}
}
}
@ -890,7 +896,7 @@ VOID UserDrawCaptionBar(
if (!(Flags & DC_NOVISIBLE) && !IntIsWindowVisible(pWnd)) return;
TRACE("UserDrawCaptionBar: pWnd %p, hDc %p, Flags 0x%x.\n", pWnd, hDC, Flags);
ERR("UserDrawCaptionBar: pWnd %p, hDc %p, Flags 0x%x.\n", pWnd, hDC, Flags);
Style = pWnd->style;
ExStyle = pWnd->ExStyle;
@ -1506,8 +1512,7 @@ NC_DoButton(PWND pWnd, WPARAM wParam, LPARAM lParam)
for (;;)
{
if (co_IntGetPeekMessage(&Msg, 0, WM_MOUSEFIRST, WM_MOUSELAST, PM_REMOVE, TRUE) <= 0)
break;
if (!co_IntGetPeekMessage(&Msg, 0, WM_MOUSEFIRST, WM_MOUSELAST, PM_REMOVE, TRUE)) break;
if (IntCallMsgFilter( &Msg, MSGF_MAX )) continue;
if (Msg.message == WM_LBUTTONUP)