IAgentNotifySink::D ragStart

[从 Windows 7 开始,Microsoft 代理已弃用,可能在后续版本的 Windows 中不可用。]

HRESULT DragStart(
   long dwCharID,  // character ID
   short fwKeys,   // mouse button and modifier key state
   long x,         // x-coordinate of mouse pointer
   long y          // y-coordinate of mouse pointer
);                          

当用户开始拖动字符时通知客户端应用程序。

  • 没有返回值。

dwCharID

拖动字符的标识符。

fwKeys

一个指示鼠标按钮和修饰键状态的参数。 参数可以返回以下任意组合:

说明
0x0001 向左按钮
0x0010 中间按钮
0x0002 向右按钮
0x0004 Shift Key Down
0x0008 控制键向下键
0x0020 Alt 键向下键

 

X

鼠标指针的 x 坐标(以像素为单位),相对于屏幕原点 (左上角) 。

Y

鼠标指针的 y 坐标(以像素为单位),相对于屏幕原点 (左上角) 。