Compartir a través de


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

'Declaration
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
)
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: UInt32

    [in] The resource ID of the current mouse cursor.

  • uNeutralRadius
    Type: 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: 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

Microsoft.VisualStudio.Shell.Interop Namespace