Define Var vX As Int Extent 2 No-undo.
Procedure GetCursorPos External "USER32.DLL":
Define Output Parameter vX As Long.
End Procedure.
Run GetCursorPos (Output vx).
Message vx[1] vx[2]
View-as Alert-box Info Buttons Ok.
Define Variable vx As Memptr.
Set-size (vx) = 8.
Procedure GetCursorPos External "USER32.DLL":
Define Output Parameter vX As Memptr.
End Procedure.
Run GetCursorPos (Output vx).
MESSAGE Get-long (vx,1) Get-long (vx,5)
VIEW-AS ALERT-BOX INFO BUTTONS OK.
I have a single image which have 4 portion. I want to call different program when I click on different part of the image. How can I know which portion the mouse is clicked on?