Share via


IDropTarget::DragLeave (Windows CE 5.0)

Send Feedback

This method removes target feedback and releases the data object.

Syntax

HRESULT DragLeave(void);

Parameters

None.

Return Values

This method returns S_OK when it is successful and E_OUTOFMEMORY when it fails.

Remarks

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

OS Versions: Windows CE .NET 4.2 and later.
Header: Shobjidl.h, Shobjidl.idl.
Link Library: Implementation dependent.

See Also

IDropTarget

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.