CView::OnDrop

virtual BOOL OnDrop( COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point );

Return Value

Nonzero if the drop was successful; otherwise 0.

Parameters

pDataObject

Points to the COleDataObject that is dropped into the drop target.

dropEffect

The drop effect that the user has requested.

point

The current mouse position relative to the view client area.

Remarks

Called by the framework when the user releases a data object over a valid drop target. The default implementation does nothing and returns FALSE.

Override this function to implement the effect of an OLE drop into the client area of the view. The data object can be examined via pDataObject for Clipboard data formats and data dropped at the specified point.

Note   The framework does not call this function if there is an override to OnDropEx in this view class.

CView OverviewClass MembersHierarchy Chart

See Also   CView::OnDragEnter, CView::OnDragOver, CView::OnDropEx, CView::OnDragLeave, COleDropTarget::OnDrop