This topic has not yet been rated - Rate this topic

RectInRegion function

Applies to: desktop apps only

The RectInRegion function determines whether any part of the specified rectangle is within the boundaries of a region.

Syntax

BOOL RectInRegion(
  __in  HRGN hrgn,
  __in  const RECT *lprc
);

Parameters

hrgn [in]

Handle to the region.

lprc [in]

Pointer to a RECT structure containing the coordinates of the rectangle in logical units. The lower and right edges of the rectangle are not included.

Return value

If any part of the specified rectangle lies within the boundaries of the region, the return value is nonzero.

If no part of the specified rectangle lies within the boundaries of the region, the return value is zero.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Regions Overview
Region Functions
PtInRegion
RECT

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ