Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Determines whether any part of the rectangle specified by lpRect is within the boundaries of the region stored in the CRgn object.

BOOL RectInRegion(
   LPCRECT lpRect 
) const;


Points to a RECT structure or CRect object. The RECT structure has the following form:
typedef struct tagRECT {
   int left;
   int top;
   int right;
   int bottom;

Return Value

Nonzero if any part of the specified rectangle lies within the boundaries of the region; otherwise 0.

See Also

CRgn Overview | Class Members | Hierarchy Chart | RectInRegion

© 2015 Microsoft