Partager via


COleDropSource::GiveFeedback

Called by the framework after calling COleDropTarget::OnDragOver or COleDropTarget::DragEnter.

virtual SCODE GiveFeedback(
   DROPEFFECT dropEffect 
);

Parameters

  • dropEffect
    The effect you would like to display to the user, usually indicating what would happen if a drop occurred at this point with the selected data. Typically, this is the value returned by the most recent call to CView::OnDragEnter or CView::OnDragOver. It can be one or more of the following:

    • DROPEFFECT_NONE   A drop would not be allowed.

    • DROPEFFECT_COPY   A copy operation would be performed.

    • DROPEFFECT_MOVE   A move operation would be performed.

    • DROPEFFECT_LINK   A link from the dropped data to the original data would be established.

    • DROPEFFECT_SCROLL   A drag scroll operation is about to occur or is occurring in the target.

Return Value

Returns DRAGDROP_S_USEDEFAULTCURSORS if dragging is in progress, NOERROR if it is not.

Remarks

Override this function to provide feedback to the user about what would happen if a drop occurred at this point. The default implementation uses the OLE default cursors. For more information on drag-and-drop operations using OLE, see the article Drag and Drop (OLE).

For more information, see IDropSource::GiveFeedback, IDropTarget::DragOver, and IDropTarget::DragEnter in the Windows SDK.

Requirements

Header: afxole.h

See Also

Concepts

COleDropSource Class

COleDropSource Members

Hierarchy Chart

CView::OnDragEnter

CView::OnDragOver