IVsTextMarkerGlyphDropHandler.DrawCandidateOutlineGlyph 方法

绘制标志符号的阴影在小部件的边距在一个潜在的目标行。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Function DrawCandidateOutlineGlyph ( _
    dwReserved As UInteger, _
    hdc As IntPtr, _
    pRect As RECT(), _
    clrref As UInteger _
) As Integer
int DrawCandidateOutlineGlyph(
    uint dwReserved,
    IntPtr hdc,
    RECT[] pRect,
    uint clrref
)
int DrawCandidateOutlineGlyph(
    [InAttribute] unsigned int dwReserved, 
    [InAttribute] IntPtr hdc, 
    [InAttribute] array<RECT>^ pRect, 
    [InAttribute] unsigned int clrref
)
abstract DrawCandidateOutlineGlyph : 
        dwReserved:uint32 * 
        hdc:IntPtr * 
        pRect:RECT[] * 
        clrref:uint32 -> int
function DrawCandidateOutlineGlyph(
    dwReserved : uint, 
    hdc : IntPtr, 
    pRect : RECT[], 
    clrref : uint
) : int

参数

  • dwReserved
    类型:UInt32

    [in] 不要使用。

  • hdc
    类型:IntPtr

    [in] 对绘制标志符号的显示上下文的句柄。

  • pRect
    类型:array<RECT[]

    [in] 用于定义标志符号的边框的 RECT 结构的指针。

  • clrref
    类型:UInt32

    [in] RGB 标志符号的颜色值。

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

HRESULT IVsTextMarkerGlyphDropHandler::DrawCandidateOutlineGlyph(
   [in] DWORD dwReserved,
   [in] HDC hdc,
   [in] RECT *pRect,
   [in] COLORREF clrref
);

绘制同一标志符号不考虑是否为目标是有效的。 反馈关于是否为目标是有效的将鼠标光标为。

.NET Framework 安全性

请参阅

参考

IVsTextMarkerGlyphDropHandler 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间