Enables a source application to give visual feedback to its end user during a
drag-and-drop operation by providing the DoDragDrop
function with an enumeration value specifying the visual effect.
| DWORD dwEffect
||//Effect of a drop operation
[in] Specifies the DROPEFFECT
value returned by the most recent call to IDropTarget::DragEnter
, or IDropTarget::DragLeave
. For a list of values, see the DROPEFFECT
The function completed its task successfully using the cursor set by the
The function completed successfully using the OLE-provided, default cursor.
One or more arguments are invalid.
Out of memory.
An unexpected error occurred.
When your application detects that the user has started a drag-and-drop
operation, you call the DoDragDrop
enters a loop, calling IDropTarget::DragEnter
when the mouse first enters a drop target window, IDropTarget::DragOver
when the mouse changes its position within the target window, and IDropTarget::DragLeave
when the mouse leaves the target window.
For every call to either IDropTarget::DragEnter
, passing it the DROPEFFECT
value returned from the drop target call. IDropSource::GiveFeedback
is responsible for changing the cursor shape or for changing the highlighted
source based on the value of the dwEffect
when the mouse has left the target window. Then, DoDragDrop
and passes the DROPEFFECT_NONE value in the dwEffect
parameter can include DROPEFFECT_SCROLL, indicating the source should put up the drag-scrolling
variation of the appropriate pointer.
OLE defines a recommended set of cursor shapes that your application should
use. See the User Interface Guidelines for more information.
Notes to Implementors
This function is called frequently during the DoDragDrop
loop so you can gain performance advantages if you optimize your
implementation as much as possible.
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages