Commit 4ae481e4 authored by James Hatheway's avatar James Hatheway Committed by Alexandre Julliard

SetWindowRgn shouldn't activate the window.

parent d81ce0fc
......@@ -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) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment