IDropSourceQueryContinueDrag Method

Determines whether a drag-and-drop operation should be continued, canceled, or completed.

You do not call this method directly. The OLE DoDragDrop function calls this method during a drag-and-drop operation.

Definition

Namespace: DevCase.Win32.Interfaces
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[PreserveSigAttribute]
HResult QueryContinueDrag(
	bool escapePressed,
	uint keyState
)

Parameters

escapePressed  Boolean
Indicates whether the Escape key has been pressed since the previous call to QueryContinueDrag(Boolean, UInt32) or to DoDragDrop function if this is the first call to QueryContinueDrag(Boolean, UInt32).

A value indicates the end user has pressed the escape key; a value indicates it has not been pressed.

keyState  UInt32
The current state of the keyboard modifier keys on the keyboard. Possible values can be a combination of any of the flags: MK_CONTROL, MK_SHIFT, MK_ALT, MK_BUTTON, MK_LBUTTON, MK_MBUTTON, and MK_RBUTTON.

Return Value

HResult
S_OK:

The drag operation should continue. This result occurs if no errors are detected, the mouse button starting the drag-and-drop operation has not been released, and the Esc key has not been detected.

DRAGDROP_S_DROP:

The drop operation should occur completing the drag operation. This result occurs if keyState indicates that the key that started the drag-and-drop operation has been released.

DRAGDROP_S_CANCEL:

The drag operation should be canceled with no drop operation occurring. This result occurs if escapePressed is , indicating the Escape key has been pressed.

See Also