IVsIntelliMouseHandler.SetMouseCursor_ 方法

设置当前定位鼠标光标的基础。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
Function SetMouseCursor_ ( _
    ptOrg As POINT, _
    ptNew As POINT, _
    idCurOrg As UInteger, _
    uNeutralRadius As UInteger _
) As Integer
int SetMouseCursor_(
    POINT ptOrg,
    POINT ptNew,
    uint idCurOrg,
    uint uNeutralRadius
)

参数

  • idCurOrg
    类型:System.UInt32
    [in] 当前鼠标光标的资源 ID。
  • uNeutralRadius
    类型:System.UInt32
    [in] 非半径。如果在位置的更改。 ptOrg 和 ptNew 之间比此半径小于,不移动光标。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell.idl:

HRESULT IVsIntelliMouseHandler::SetMouseCursor_(
   [in] POINT ptOrg, 
   [in] POINT ptNew, 
   [in] UINT idCurOrg, 
   [in] UINT uNeutralRadius
);

.NET Framework 安全性

请参见

参考

IVsIntelliMouseHandler 接口

Microsoft.VisualStudio.Shell.Interop 命名空间