How to find node under mouseclick in TAdvTreeView

How can I find out on which (virtual) node was clicked in the TAdvTreeView?
I want to show a TAdvPopupMenu with PopupAtCursor, but I only want to do that when the Level = 0.
In a standard TreeView I can use GetNodeAt(x,y), but that one is missing from the TAdvTreeView.


You can use the XYToNode functionality.

Ah, I overlooked that functionality. Looked for Getxxx and Findxxxx functions, but I nver noticed this one. Thank you!