onLink2
Check to see if a point is inside a hyperlink.
onLink2([in] int page, [in] double x, [in] double y, [out, retval] VARIANT_BOOL *link)
This function returns true if the specified coordinates on the
specified page are inside (over) a hyperlink.
The coordinates are in the PDF coordinate space. Mouse coordinates
must be converted before being passed to this function (see
convertWindowToPDFCoords2
).
VB:
Private Sub viewer_MouseUp2(button As Integer, shift As Integer, _
page As Long, x As Double, y As Double) _
Handles viewer.MouseUp2
If viewer.onLink2(page, x, y) Then
viewer.gotoLinkAt2(page, x, y)
End If
End Sub