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 code | Description |
|---|---|
|
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 |
|
|
IDL |
|
|
IID |
IID_IDropTarget is defined as 00000122-0000-0000-C000-000000000046 |
See also
Show: