OLECompleteDrag Event, SftTree Object
The OLE drag & drop operation has ended.
|VB.NET||Private Sub object_OLECompleteDrag(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.OLECompleteDrag|
|VB||Private Sub object_OLECompleteDrag(Effect As Long)|
|C#.NET||void object_OLECompleteDrag(object sender, EventArgumentType e);|
|VC++||void OnOLECompleteDragobject(long* Effect);|
|C||HRESULT OnOLECompleteDragobject(long* Effect);|
A SftTree object.
A value set by the target object identifying the action that has been performed, thus allowing the source to take appropriate action if the component was moved (such as the source deleting data if it is moved from one component to another).
|vbDropEffectNone||0||Drop target cannot accept the data.|
|vbDropEffectCopy||1||Drop results in a copy of data from the source to the target. The original data is unaltered by the drag operation.|
|vbDropEffectMove||2||Drop results in data being moved from the drag source to the drop source. The drag source should remove the data from itself after the move.|
Note: Only Visual Basic offers the predefined constants vbDropEffectNone, etc. When using other languages, the constants have to be defined explicitly by the application.
The OLECompleteDrag event occurs when the OLE drag & drop operation has ended.
The OLECompleteDrag event occurs when source object is notified that the OLE drag & drop operation is ending.
The OLECompleteDrag event is the final event to be called in an OLE drag & drop operation. This event informs the source component of the action that was performed when the object was dropped onto the target component. The target sets this value through the Effect parameter of the OLEDragDrop event. Based on this, the source can then determine the appropriate action it needs to take. For example, if the object was moved into the target (vbDropEffectMove), the source needs to delete the object from itself after the move.
See Also SftTree Object | Object Hierarchy