IDropTargetImpl::DragEnter

HRESULT IDropTargetImpl::DragEnter(IDataObject *pDataObj, DWORD grfKeyState, POINTL ptl, DWORD* pdwEffect)

Notification of drag enter

Defined in: DropTarget.h

Return Value

Returns S_OK if dragging should continue. Returns DRAGDROP_S_CANCELif the dragging should stop. Returns DRAGDROP_S_DROP if it's time to drop the data.

Parameters

*pDataObj

Pointer to a data object

grfKeyState

Flag indicating key state

ptl

current point

pdwEffect

Drop target fills this with the desired state based on the keyboard flags.

Comments

DragEnter calls the virtual function OnDragEnter