I am developing a plug-in same as Symbols panel.
1: user slected a symbol( a entry in the list box,symbols panel) ( user can use any tool to select this entry )
2:drag it to document windows.
3:when mouse up, create a art at the current cursor point .
my problem is how to get cursor point for artwork coordinates.
in the entry track proc, I can get mouse up point,
ADMPoint mouseLocalPoint;
sADMTracker->GetPoint(inTracker,&mouseLocalPoint);
but this point is entry local point, so I thanslate it to screen point.
sADMEntry->LocalToScreenPoint(inEntry,&mouseLocalPoint);
if I want to get artworkPoint,I have to get documentViewPoint,then use
sAIDocumentView->ViewPointToArtworkPoint().
How to get documentViewPoint from screen point?
I think if I can get the coordinates of the documentView window on the screen ,I could translate cursor screen point to documentView point ,then thanslate it to artworkPoint.
So,how to get document windows location on screen?