EN
本內容沒有您的語言版本,但有英文版本。

IDropTarget::DragLeave method

Removes target feedback and releases the data object.

Syntax


HRESULT DragLeave();

Parameters

This method has no parameters.

Return value

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

Return codeDescription
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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OleIdl.h

IDL

OleIdl.Idl

IID

IID_IDropTarget is defined as 00000122-0000-0000-C000-000000000046

See also

DoDragDrop
IDropSource
IDropSourceNotify
IDropTarget
RegisterDragDrop
RevokeDragDrop

 

 

社群新增項目

新增
顯示:
© 2014 Microsoft