Compartir a través de


IVsHierarchyDirectionalDropDataTarget.DragOverArea Method

Definition

Informs the hierarchy that dragging has continued over an area.

public:
 int DragOverArea(System::UInt32 grfKeyState, System::UInt32 itemid, System::UInt32 area, [Runtime::InteropServices::Out] System::UInt32 % pdwEffect);
int DragOverArea(unsigned int grfKeyState, unsigned int itemid, unsigned int area, [Runtime::InteropServices::Out] unsigned int & pdwEffect);
public int DragOverArea (uint grfKeyState, uint itemid, uint area, out uint pdwEffect);
abstract member DragOverArea : uint32 * uint32 * uint32 * uint32 -> int
Public Function DragOverArea (grfKeyState As UInteger, itemid As UInteger, area As UInteger, ByRef pdwEffect As UInteger) As Integer

Parameters

grfKeyState
UInt32

[in] Current state of the keyboard keys and the mouse modifier buttons.

itemid
UInt32

[in] Item identifier of the drop data target over which the item is being dragged. For a list of itemid values, see VSConstants.VSITEMID.

area
UInt32

[in] The area over which the item is dragged.

pdwEffect
UInt32

[in, out] On entry, pointer to the value of the pdwEffect parameter of the IVsHierarchy object, identifying all effects that the hierarchy supports. On return, the pdwEffect parameter must contain one of the effect flags that indicate the result of the drop operation. For a list of pwdEffects values, see DragEnterArea(IDataObject, UInt32, UInt32, UInt32, UInt32).

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Valid values for grfKeyState are shown in the following table. These values can be combined using a bitwise OR operator.

Hex Value Description
0x0001 MK_LBUTTON Left mouse button is clicked.
0x0002 MK_RBUTTON Right mouse button is clicked.
0x0004 MK_SHIFT SHIFT key is pressed.
0x0008 MK_CONTROL CONTROL key is pressed.
0x0010 MK_MBUTTON Middle mouse button is clicked.
0x0020 MK_ALT ALT key is pressed.

Applies to