Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RectInRegion function

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 [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Regions Overview
Region Functions
PtInRegion
RECT

 

 

Community Additions

Show:
© 2014 Microsoft