In this guide https://msdn.microsoft.com/en-us/library/office/ff767482.aspx , I am able to get a event trigger when I drag and drop my shapes. But the problem is the shape position is not updated to the drop position when I received this event trigger. My question is how do I get a updated position of the shape after I drop the it to perform some overlap check on the shape with other shapes in Visio?
Dim strMessage As String
'Find out which event and event extension fired
Select Case nEventCode
Case visEvtCodeMouseMove
Dim strInfo As String
If (pSubjectObj.DragState = visMouseMoveDragStatesDrop) Then
strMessage = "MouseMove - dragDrop"
'Shape position is not updated to drop position here
End If
Case Else
strMessage = "Other (" & nEventCode & ")"
End Select
'Display the event name and the event code
If (Len(strMessage)) Then
Debug.Print strMessage
End If
End Function