共用方式為


IVsIntelliMouseHandler.SetMouseCursor_ Method

Sets the cursor base where the mouse is currently located.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣告
Function SetMouseCursor_ ( _
    ptOrg As POINT, _
    ptNew As POINT, _
    idCurOrg As UInteger, _
    uNeutralRadius As UInteger _
) As Integer
'用途
Dim instance As IVsIntelliMouseHandler
Dim ptOrg As POINT
Dim ptNew As POINT
Dim idCurOrg As UInteger
Dim uNeutralRadius As UInteger
Dim returnValue As Integer

returnValue = instance.SetMouseCursor_(ptOrg, _
    ptNew, idCurOrg, uNeutralRadius)
int SetMouseCursor_(
    POINT ptOrg,
    POINT ptNew,
    uint idCurOrg,
    uint uNeutralRadius
)
int SetMouseCursor_(
    [InAttribute] POINT ptOrg, 
    [InAttribute] POINT ptNew, 
    [InAttribute] unsigned int idCurOrg, 
    [InAttribute] unsigned int uNeutralRadius
)
abstract SetMouseCursor_ : 
        ptOrg:POINT * 
        ptNew:POINT * 
        idCurOrg:uint32 * 
        uNeutralRadius:uint32 -> int 
function SetMouseCursor_(
    ptOrg : POINT, 
    ptNew : POINT, 
    idCurOrg : uint, 
    uNeutralRadius : uint
) : int

Parameters

  • idCurOrg
    Type: System.UInt32
    [in] The resource ID of the current mouse cursor.
  • uNeutralRadius
    Type: System.UInt32
    [in] The neutral radius. If the change in position between ptOrg and ptNew is less than this radius, does not move the cursor.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsIntelliMouseHandler Interface

IVsIntelliMouseHandler Members

Microsoft.VisualStudio.Shell.Interop Namespace