Hello!

In my Treeviews I want to show the contextmenu when the user hits the
application-key (the key between the right Ctrl- and Windows-Key).

The application-key triggers the event pbm_contextmenu and has a xpos
and a ypos parameter, but this parameters are always -5 and -4, but I
want to display the menu near to the selected treeviewitem (like
Windows Explorer did).

I searched on the net and Google Groups, but I can't find anything how
to get the x/y-coordinate of the selected treeviewitem.

Does anybody know how to determine these values?

Thank you!