PtInRegion

Syntax

BOOL PtInRegion(hRgn,X,Y)

This function specifies whether the point given by the X and Y parameters is in the given region.

Parameter Type/Description  

hRgn HRGN Identifies the region to be examined.  
X int Specifies the logical x-coordinate of the point.  
Y int Specifies the logical y-coordinate of the point.  

Return Value

The return value specifies whether the specified point is in the given region. It is nonzero if the point is in the region. Otherwise, it is zero.