Removes target feedback and releases the data object.

HRESULT DragLeave(void);

Return Values


The function completed its task successfully.


Out of memory.


The DoDragDrop function calls this method in either of the following cases:

  • When the user drags the cursor out of a given target window.

  • When the user cancels the current drag-and-drop operation.

In the IDropTarget::DragLeave method, you must remove any target feedback that is currently displayed. You must also release any references you hold to the data transfer object.

See Also

DoDragDrop, IDropSource, IDropTarget, RegisterDragDrop, RevokeDragDrop

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database