Annotation Behind an Annotation

There is no method to return a list of all annotations under a given point, however implementing such method in terms of the existing API should be fairly simple:

a) get a page # from screen point using PDFViewCtrl.GetPageNumberFromScreenPt(x, y)
b) get a page using PDFViewCtrl.GetDoc().GetPage(page#)
c) traverse all annotations on the given page (see code in Annotation sample testing for intersection:

Point p = pdfview.ConvScreenPtToPagePt(x, y, page_num)

int num_annots = page.GetNumAnnots();
for (int i=0; i<num_annots; ++i) {
Annot annot = page.GetAnnot(i);
if (annot.IsValid() == false) continue;
Rect bbox = annot.GetRect();
if p is in bbox add annot to the list…

Thanks a lot, It works.