mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
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:
parent
842b2d68dc
commit
a0811f8010
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue