From 593d22e757e57238846bd065f3bbd26257c81f49 Mon Sep 17 00:00:00 2001 From: Richard Campbell Date: Wed, 12 Mar 2003 16:27:32 +0000 Subject: [PATCH] A couple bugfixes svn path=/trunk/; revision=4294 --- reactos/lib/user32/windows/defwnd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/user32/windows/defwnd.c b/reactos/lib/user32/windows/defwnd.c index 12a4ad90a42..590eef3e387 100644 --- a/reactos/lib/user32/windows/defwnd.c +++ b/reactos/lib/user32/windows/defwnd.c @@ -1,4 +1,4 @@ -/* $Id: defwnd.c,v 1.32 2003/03/12 06:32:44 rcampbell Exp $ +/* $Id: defwnd.c,v 1.33 2003/03/12 16:27:32 rcampbell Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS user32.dll @@ -322,7 +322,7 @@ static void UserDrawCaptionNC( HDC hDC, RECT *rect, HWND hWnd, /* Implement and Use DrawCaption() */ SelectObject( hDC, GetSysColorBrush(active ? COLOR_ACTIVECAPTION : COLOR_INACTIVECAPTION) ); - PatBlt(hDC,rect->left + 3, rect->top + 3, rect->right - 6, rect->bottom - 1, PATCOPY ); + PatBlt(hDC,rect->left + GetSystemMetrics(SM_CYFIXEDFRAME), rect->top + 3, rect->right - (GetSystemMetrics(SM_CYFIXEDFRAME) * 2), rect->bottom - 1, PATCOPY ); if (style & WS_SYSMENU) {