IDropTarget::DragLeave method (oleidl.h)

Removes target feedback and releases the data object.

Syntax

HRESULT DragLeave();

Return value

This method returns S_OK on success. Other possible values include the following.

Return code Description
E_OUTOFMEMORY
There is insufficient memory available for this operation.

Remarks

You do not call this method directly. 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.
To implement IDropTarget::DragLeave, you must remove any target feedback that is currently displayed. You must also release any references you hold to the data transfer object.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header oleidl.h

See also

DoDragDrop

IDropSource

IDropSourceNotify

IDropTarget

RegisterDragDrop

RevokeDragDrop