Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

InPolygon Function

Status
Not open for further replies.

Toyman

Programmer
Jun 19, 2001
68
GB
I'am using the Polygon API to draw a Polygon.
Now I want to determine if the user click inside the polygon. Where can I find the VB Version of InPolygon ??

Thanks
 
There ain't a VB version - but what you can do is create a polygon region using the CreatePolygonRgn (using the same points array that you did for the polygon itself), and then use the PtInRegion call.

Regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top