IVsHierarchyDropDataTarget.DragOver(UInt32, UInt32, UInt32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当将一个或多个项拖动到目标层次结构或层次结构窗口上时调用。
public:
int DragOver(System::UInt32 grfKeyState, System::UInt32 itemid, [Runtime::InteropServices::Out] System::UInt32 % pdwEffect);
int DragOver(unsigned int grfKeyState, unsigned int itemid, [Runtime::InteropServices::Out] unsigned int & pdwEffect);
public int DragOver (uint grfKeyState, uint itemid, out uint pdwEffect);
abstract member DragOver : uint32 * uint32 * uint32 -> int
Public Function DragOver (grfKeyState As UInteger, itemid As UInteger, ByRef pdwEffect As UInteger) As Integer
参数
- grfKeyState
- UInt32
中键盘按键和鼠标修饰按钮的当前状态。 下表显示了有效值。 可以使用按位 "或" 运算符组合这些值。[1 | 1]Hex [1 | 2] 值 [1 | 3] 说明 [2 | 1] 0x0001 [2 | 2] MK_LBUTTON [2 | 3] 单击鼠标左键。[3 | 1] 0x0002 [3 | 2] MK_RBUTTON [3 | 3] 单击鼠标右键。[4 | 1] 0x0004 [4 | 2] MK_SHIFT 按下 SHIFT 键。[5 | 1] 0x0008 [5 | 2] MK_CONTROL 按下了 CTRL 键。[6 | 1] 0x0010 [6 | 2] MK_MBUTTON [6 | 3] 单击鼠标中键。[7 | 1] 0x0020 [7 | 2] MK_ALT 按下了 ALT 键。
- itemid
- UInt32
中要拖动项的放置数据目标的项标识符。 有关值的列表 itemid ,请参阅 VSITEMID 。
- pdwEffect
- UInt32
[in,out]进入时,指向对象的参数值的指针 pdwEffect IVsHierarchy ,标识层次结构支持的所有效果。 返回时,该 pdwEffect 参数必须包含一个指示放置操作结果的效果标志。 有关值的列表 pwdEffects ,请参阅 DragEnter(IDataObject, UInt32, UInt32, UInt32) 。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsHierarchyDropDataTarget::DragOver(
[in]DWORD grfKeyState,
[in]VSITEMID itemid,
[in, out]DWORD * pdwEffect
);
函数传递键盘按键和鼠标修饰按钮的状态, (是否) 了一个或多个。