From f8758cae49d64a91b7a4f2ac12682b3d17dab104 Mon Sep 17 00:00:00 2001 From: Richard Campbell Date: Sun, 25 May 2003 21:05:38 +0000 Subject: [PATCH] Small visual fixes, more coming soon. svn path=/trunk/; revision=4756 --- reactos/lib/user32/windows/defwnd.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/reactos/lib/user32/windows/defwnd.c b/reactos/lib/user32/windows/defwnd.c index 6599b4c6f62..3e2b9178c9d 100644 --- a/reactos/lib/user32/windows/defwnd.c +++ b/reactos/lib/user32/windows/defwnd.c @@ -1,4 +1,4 @@ -/* $Id: defwnd.c,v 1.47 2003/05/25 10:53:05 rcampbell Exp $ +/* $Id: defwnd.c,v 1.48 2003/05/25 21:05:38 rcampbell Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS user32.dll @@ -403,9 +403,10 @@ static void UserDrawCaptionNC( HDC hDC, RECT *rect, HWND hWnd, char buffer[256]; /* FIXME: Implement and Use DrawCaption() */ SelectObject( hDC, GetSysColorBrush(active ? COLOR_ACTIVECAPTION : COLOR_INACTIVECAPTION) ); - PatBlt(hDC,rect->left + GetSystemMetrics(SM_CXFRAME), rect->top + - GetSystemMetrics(SM_CYFRAME), rect->right - (GetSystemMetrics(SM_CXFRAME) * 2) - 1, rect->top + - GetSystemMetrics(SM_CYCAPTION) - 1, PATCOPY ); + + PatBlt(hDC,rect->left + GetSystemMetrics(SM_CXFRAME), rect->top + + GetSystemMetrics(SM_CYFRAME), rect->right - (GetSystemMetrics(SM_CXFRAME) * 2), (rect->top + + GetSystemMetrics(SM_CYCAPTION)) - 1, PATCOPY ); if (style & WS_SYSMENU) { @@ -612,8 +613,8 @@ DefWndHitTestNC(HWND hWnd, POINT Point) if ((Style & WS_CAPTION) == WS_CAPTION) { - WindowRect.top += GetSystemMetrics(SM_CYCAPTION) - - GetSystemMetrics(SM_CYBORDER); + WindowRect.top += (GetSystemMetrics(SM_CYCAPTION) - + GetSystemMetrics(SM_CYBORDER)); if (!PtInRect(&WindowRect, Point)) { if ((Style & WS_SYSMENU) && !(ExStyle & WS_EX_TOOLWINDOW)) @@ -914,8 +915,8 @@ DefWndAdjustRect(RECT* Rect, ULONG Style, BOOL Menu, ULONG ExStyle) } if (Style & WS_CAPTION) { - Rect->top -= GetSystemMetrics(SM_CYCAPTION) - - GetSystemMetrics(SM_CYBORDER); + Rect->top -= (GetSystemMetrics(SM_CYCAPTION) - + GetSystemMetrics(SM_CYBORDER)) + 1; } if (Menu) {