RectInRegion

Version 3.0

Syntax

BOOL RectInRegion(hRegion,lpRect)

This function determines whether any part of the rectangle specified by the lpRect parameter is within the boundaries of the region identified by the hRegion parameter.

Parameter Type/Description  

hRegion HRGN Identifies the region.  
lpRect LPRECT Identifies the rectangle.  

Return Value

The return value is TRUE if any part of the specified rectangle lies within the boundaries of the region. Otherwise, the return value is FALSE.