mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.5 KiB
59 lines
1.5 KiB
/****************************** Module Header ******************************\
|
|
* Module Name: clrect.c
|
|
*
|
|
* Copyright (c) 1985-91, Microsoft Corporation
|
|
*
|
|
* This module contains the various rectangle manipulation APIs.
|
|
*
|
|
* History:
|
|
* 04-05-91 DarrinM Pulled these routines from RTL because they call GDI.
|
|
\***************************************************************************/
|
|
|
|
#include "precomp.h"
|
|
#pragma hdrstop
|
|
|
|
/***************************************************************************\
|
|
* DrawFocusRect (API)
|
|
*
|
|
* Draw a rectangle in the style used to indicate focus
|
|
* Since this is an XOR function, calling it a second time with the same
|
|
* rectangle removes the rectangle from the screen
|
|
*
|
|
* History:
|
|
* 19-Jan-1993 mikeke Client side version
|
|
\***************************************************************************/
|
|
|
|
BOOL DrawFocusRect(
|
|
HDC hDC,
|
|
CONST RECT *pRect)
|
|
{
|
|
UserAssert(ghdcGray != NULL);
|
|
ClientFrame(hDC, pRect, ghbrGray, PATINVERT);
|
|
return TRUE;
|
|
}
|
|
|
|
/***************************************************************************\
|
|
* FrameRect (API)
|
|
*
|
|
* History:
|
|
* 01-25-91 DavidPe Created.
|
|
\***************************************************************************/
|
|
|
|
int APIENTRY FrameRect(
|
|
HDC hdc,
|
|
CONST RECT *lprc,
|
|
HBRUSH hbr)
|
|
{
|
|
ClientFrame(hdc, lprc, hbr, PATCOPY);
|
|
return TRUE;
|
|
}
|
|
|
|
//LATER why is this call exported???
|
|
|
|
int APIENTRY CsFrameRect(
|
|
HDC hdc,
|
|
const RECT *lprc,
|
|
HBRUSH hbr)
|
|
{
|
|
return (FrameRect(hdc, lprc, hbr));
|
|
}
|