This topic has not yet been rated - Rate this topic

IVsMouseCursorProvider Interface

Allows a marker to alter the mouse cursor when it is over its glyph.

Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in microsoft.visualstudio.textmanager.interop.dll)

[GuidAttribute("E32F08DB-6364-4276-8EA8-BAA6752F7807")] 
[InterfaceTypeAttribute(1)] 
public interface IVsMouseCursorProvider
/** @attribute GuidAttribute("E32F08DB-6364-4276-8EA8-BAA6752F7807") */ 
/** @attribute InterfaceTypeAttribute(1) */ 
public interface IVsMouseCursorProvider
GuidAttribute("E32F08DB-6364-4276-8EA8-BAA6752F7807") 
InterfaceTypeAttribute(1) 
public interface IVsMouseCursorProvider

The text view negotiates the hover cursor and drag initiation by calling QueryInterface on the marker client provided (IVsTextMarkerClient. The client object should implement IVsMouseCursorProvider to handle mouse cursor updates for MV_GLYPH_HOVER_CURSOR and IVsTextMarkerGlyphDropHandler

Notes to Implementers Implement on the text marker client object to allow a marker to alter the mouse cursor when it is over its glyph. If a marker has MV_GLYPH_HOVER_CURSORturned on for its visual style bits (MARKERVISUAL), then the environment will call QueryInterface on the IVsTextMarkerClient for this interface. This flag is ignored for markers that do not have MV_GLYPH specified.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ