don't send WM_ACTIVATE messages to the previous active window which caused the infinite loop in regedit

svn path=/trunk/; revision=11791
This commit is contained in:
Thomas Bluemel 2004-11-24 00:11:06 +00:00
parent 842b2d68dc
commit a0811f8010

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* $Id: focus.c,v 1.24 2004/06/23 15:38:07 weiden Exp $ * $Id: focus.c,v 1.25 2004/11/24 00:11:06 weiden Exp $
*/ */
#include <w32k.h> #include <w32k.h>
@ -53,7 +53,7 @@ IntSendDeactivateMessages(HWND hWndPrev, HWND hWnd)
if (hWndPrev) if (hWndPrev)
{ {
IntPostOrSendMessage(hWndPrev, WM_NCACTIVATE, FALSE, 0); IntPostOrSendMessage(hWndPrev, WM_NCACTIVATE, FALSE, 0);
IntPostOrSendMessage(hWndPrev, WM_ACTIVATE, IntPostOrSendMessage(hWnd, WM_ACTIVATE,
MAKEWPARAM(WA_INACTIVE, NtUserGetWindowLong(hWndPrev, GWL_STYLE, FALSE) & WS_MINIMIZE), MAKEWPARAM(WA_INACTIVE, NtUserGetWindowLong(hWndPrev, GWL_STYLE, FALSE) & WS_MINIMIZE),
(LPARAM)hWnd); (LPARAM)hWnd);
} }