SECEditCtrlOleDropTarget::OnDropEx

DROPEFFECTSECEditCtrlOleDropTarget::OnDropEx(CWnd*pWnd, COleDataObject*pDataObject, DROPEFFECTdropEffect, DROPEFFECTdropEffectList, CPointpoint)

Called when a drop operation is to occur. This method is called first. If it does not handle the drop,  OnDrop is called.

Defined in: SECEditCtrlOleDropTarget.cpp

Return Value

The drop effect that resulted from the drop attempt at the location specified by point. This must be one of the values indicated by dropEffectList.

Parameters

pWnd

Points to the window the cursor is currently over.

pDataObject

Points to the data object that contains the data to be dropped.

dropEffect

The effect that the user chose for the default drop operation based on the current key state. It can be DROPEFFECT_NONE.

dropEffectList

A list of the drop effects that the drop source supports. Drop effect values can be combined using the bitwise OR (|) operation.

point

Contains the location of the cursor, in pixels, relative to the screen.

Comments

Drop effects describe the action associated with a drop operation. See the following list of drop effects:

DROPEFFECT_NONE A drop would not be allowed.
DROPEFFECT_COPY A copy operation would be performed.
DROPEFFECT_MOVE A move operation would be performed.

The default implementation of SECEditCtrlOleDropTarget::OnDropEx calls COleDropTarget::OnDropEx, which calls CView::OnDropEx. By default, CView::OnDropEx simply returns a dummy value to indicate the OnDrop member function should be called.

See Also

SECEditCtrlOleDropTarget  SECEditCtrl

OnDrop