use DSTINVERT for DrawFocusRect() and the moving/sizing rectangle

svn path=/trunk/; revision=7293
This commit is contained in:
Thomas Bluemel 2003-12-28 16:31:44 +00:00
parent 1a0383df0b
commit 279f8d333b
2 changed files with 6 additions and 8 deletions

View file

@ -1,4 +1,4 @@
/* $Id: defwnd.c,v 1.119 2003/12/28 00:41:31 weiden Exp $ /* $Id: defwnd.c,v 1.120 2003/12/28 16:31:44 weiden Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS user32.dll * PROJECT: ReactOS user32.dll
@ -451,7 +451,7 @@ UserDrawMovingFrame(HDC hdc, RECT *rect, BOOL thickframe)
if (thickframe) if (thickframe)
{ {
UserDrawWindowFrame(hdc, rect, GetSystemMetrics(SM_CXFRAME), UserDrawWindowFrame(hdc, rect, GetSystemMetrics(SM_CXFRAME),
GetSystemMetrics(SM_CYFRAME), PATINVERT ); GetSystemMetrics(SM_CYFRAME), DSTINVERT);
} }
else DrawFocusRect( hdc, rect ); else DrawFocusRect( hdc, rect );
} }

View file

@ -1864,16 +1864,14 @@ DrawFocusRect(HDC hdc, CONST RECT *rect)
return TRUE; return TRUE;
#else #else
HBRUSH hbrush = SelectObject(hdc, GetStockObject(GRAY_BRUSH));
PatBlt(hdc, rect->left, rect->top, PatBlt(hdc, rect->left, rect->top,
rect->right - rect->left - 1, 1, PATINVERT); rect->right - rect->left - 1, 1, DSTINVERT);
PatBlt(hdc, rect->left, rect->top + 1, 1, PatBlt(hdc, rect->left, rect->top + 1, 1,
rect->bottom - rect->top - 1, PATINVERT); rect->bottom - rect->top - 1, DSTINVERT);
PatBlt(hdc, rect->left + 1, rect->bottom - 1, PatBlt(hdc, rect->left + 1, rect->bottom - 1,
rect->right - rect->left - 1, -1, PATINVERT); rect->right - rect->left - 1, -1, DSTINVERT);
PatBlt(hdc, rect->right - 1, rect->top, -1, PatBlt(hdc, rect->right - 1, rect->top, -1,
rect->bottom - rect->top - 1, PATINVERT); rect->bottom - rect->top - 1, DSTINVERT);
SelectObject(hdc, hbrush);
return TRUE; return TRUE;
#endif #endif