From 4ae481e4e0cc6fc63ae1e3f6f59c180ba8a7c100 Mon Sep 17 00:00:00 2001 From: James Hatheway Date: Thu, 12 Apr 2001 21:06:17 +0000 Subject: [PATCH] SetWindowRgn shouldn't activate the window. --- windows/winpos.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/windows/winpos.c b/windows/winpos.c index 09cb948275..4559797810 100644 --- a/windows/winpos.c +++ b/windows/winpos.c @@ -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) );