IDropSourceImpl::QueryContinueDrag

HRESULTIDropSourceImpl::QueryContinueDrag(BOOLbEscapePressed, DWORDdwKeyState)

Answers the question of whether the dragging should continue

Defined in: DropSource.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

bEscapePressed

Flag indicating whether or not escape is pressed.

dwKeyState

State of the keyboard (i.e. control key, alt key, escape key, etc.)

Comments

QueryContinueDrag default to stopping dragging and dropping when bEscapePressed parameter is TRUE. Also defaults to the left mouse button indicating a drop.