Convert pixels to coordinates in mouse event

Hi, Programmers.

   I have created a class that implements sldworks.mouse class to monitor mouse clicks. But how can I convert the coordinates in pixels to SW coordinates in my drawing ?

Dim WithEvents ms As SldWorks.mouse

Private Function ms_MouseLBtnDownNotify(ByVal X As Long, ByVal Y As Long, ByVal WParam As Long) As Long

  'How can I convert X and Y from pixels to coordinates ?

End Function

Thanks in advance.

Bruno Neves Pires Silva

SolidworksApi macros