SetWindowRgn shouldn't activate the window.

This commit is contained in:
James Hatheway 2001-04-12 21:06:17 +00:00 committed by Alexandre Julliard
parent d81ce0fc6a
commit 4ae481e4e0
1 changed files with 3 additions and 1 deletions

View File

@ -320,9 +320,11 @@ int WINAPI SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL bRedraw )
/* Size the window to the rectangle of the new region
(if it isn't NULL) */
/* James: Added SWP_NOACTIVATE because SetWindowRgn in Windows doesn't activate the
window (and this was REALLY screwing up my app) */
SetWindowPos( hwnd, 0, tempRect.left, tempRect.top,
tempRect.right - tempRect.left, tempRect.bottom - tempRect.top,
SWP_NOSIZE | SWP_FRAMECHANGED | SWP_NOMOVE |
SWP_NOSIZE | SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOACTIVATE |
SWP_NOZORDER | (bRedraw ? 0 : SWP_NOREDRAW) );