设置当前定位鼠标光标的基础。
命名空间: 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
)
参数
- ptOrg
类型:Microsoft.VisualStudio.OLE.Interop.POINT
[in] 指示鼠标光标的当前原点结构。
- ptNew
类型:Microsoft.VisualStudio.OLE.Interop.POINT
[in] 指示鼠标光标的新位置的点结构。
- 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。