From eed3e59db46a751cf9f6dd611ee8756f75a38682 Mon Sep 17 00:00:00 2001 From: Richard Campbell Date: Fri, 15 Aug 2003 10:12:22 +0000 Subject: [PATCH] Now use GetActiveWindow() to set the active flag. svn path=/trunk/; revision=5578 --- reactos/lib/user32/windows/defwnd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reactos/lib/user32/windows/defwnd.c b/reactos/lib/user32/windows/defwnd.c index 195acff19ac..65efd2ff27a 100644 --- a/reactos/lib/user32/windows/defwnd.c +++ b/reactos/lib/user32/windows/defwnd.c @@ -1,4 +1,4 @@ -/* $Id: defwnd.c,v 1.64 2003/08/15 02:51:53 silverblade Exp $ +/* $Id: defwnd.c,v 1.65 2003/08/15 10:12:22 rcampbell Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS user32.dll @@ -457,7 +457,7 @@ SCROLL_DrawScrollBar (HWND hWnd, HDC hDC, INT nBar, BOOL arrows, BOOL interior); VOID DefWndDoPaintNC(HWND hWnd, HRGN clip) { - ULONG Active; + BOOL Active = FALSE; HDC hDC; RECT rect; ULONG Style; @@ -466,6 +466,8 @@ DefWndDoPaintNC(HWND hWnd, HRGN clip) // This won't work because it conflicts with BS_BITMAP : // Active = GetWindowLongW(hWnd, GWL_STYLE) & WIN_NCACTIVATED; + if (GetActiveWindow() == hWnd) Active = TRUE; + DbgPrint("Window:\t%d\nActiveWindow:\t%d\n\n\n\n"); Style = GetWindowLongW(hWnd, GWL_STYLE); ExStyle = GetWindowLongW(hWnd, GWL_EXSTYLE);