IVsTextMarkerType::DrawGlyph Method (IntPtr, array<RECT>^)
Visual Studio 2015
Determines where a custom marker glyph can be drawn in the widget margin.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- hdc
-
Type:
System::IntPtr
[in] Handle to a display device context that defines the visible region of interest for the glyph.
- pRect
-
Type:
array<Microsoft.VisualStudio.OLE.Interop::RECT>^
[in] Pointer to a RECT structure, which defines the coordinates of the upper-left and lower-right corners of the bounding rectangle for the glyph.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsTextMarkerType::DrawGlyph( [in] HDC hdc, [in] RECT *pRect );
Use the notification from this method to determine whether you can draw your custom marker glyph in the widget margin. Examples of glyphs include arrows and breakpoints. Glyphs are drawn in the widget margin of the core text editor.
Show: