Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

clrect.c

Go to the documentation of this file.
00001 /****************************** Module Header ******************************\ 00002 * Module Name: clrect.c 00003 * 00004 * Copyright (c) 1985 - 1999, Microsoft Corporation 00005 * 00006 * This module contains the various rectangle manipulation APIs. 00007 * 00008 * History: 00009 * 04-05-91 DarrinM Pulled these routines from RTL because they call GDI. 00010 \***************************************************************************/ 00011 00012 #include "precomp.h" 00013 #pragma hdrstop 00014 00015 /***************************************************************************\ 00016 * DrawFocusRect (API) 00017 * 00018 * Draw a rectangle in the style used to indicate focus 00019 * Since this is an XOR function, calling it a second time with the same 00020 * rectangle removes the rectangle from the screen 00021 * 00022 * History: 00023 * 19-Jan-1993 mikeke Client side version 00024 \***************************************************************************/ 00025 00026 BOOL DrawFocusRect( 00027 HDC hDC, 00028 CONST RECT *pRect) 00029 { 00030 UserAssert(ghdcGray != NULL); 00031 return ClientFrame(hDC, pRect, gpsi->hbrGray, PATINVERT); 00032 } 00033 00034 /***************************************************************************\ 00035 * FrameRect (API) 00036 * 00037 * History: 00038 * 01-25-91 DavidPe Created. 00039 \***************************************************************************/ 00040 00041 int APIENTRY FrameRect( 00042 HDC hdc, 00043 CONST RECT *lprc, 00044 HBRUSH hbr) 00045 { 00046 return ClientFrame(hdc, lprc, hbr, PATCOPY); 00047 }

Generated on Sat May 15 19:39:25 2004 for test by doxygen 1.3.7