Share via


IVsMouseCursorProvider.SetMouseCursor Method

Indicates that the text marker client should call the Win 32 API function SetCursor.

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

Syntax

'Declaration
Function SetMouseCursor ( _
    dwReserved As UInteger _
) As Integer
int SetMouseCursor(
    uint dwReserved
)
int SetMouseCursor(
    [InAttribute] unsigned int dwReserved
)
abstract SetMouseCursor : 
        dwReserved:uint32 -> int
function SetMouseCursor(
    dwReserved : uint
) : int

Parameters

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 textmgr.idl:

HRESULT IVsMouseCursorProvider::SetMouseCursor(
   [in] DWORD dwReserved
);

When the environment calls this method on your text marker client object, call SetCursor to set the mouse cursor.

.NET Framework Security

See Also

Reference

IVsMouseCursorProvider Interface

Microsoft.VisualStudio.TextManager.Interop Namespace