VB5 API PtInRegion problem
Posted on 1997-06-30
Having trouble understanding this. Have a form with a picture box. When form loads a line is draw in the pic box and used CreateRectRgn Api call. Have a text box that is used to confirm if a point is in the region. When stepping through the code, everything seems to work, but when clicking the line, it always shows that there is no point in the region. Have used the x1,y1,x2,y2 points of the line to create the region and am using the PtInRegion call to test for points. No errors show out. Have tried to make the code as simple as possible to avoid confusion. Why do I get a negative response from this call? Using code from a book API how to.