IVsTextMarkerGlyphDropHandler.DrawCandidateOutlineGlyph 方法

定义

在可能目标行的小组件边距中绘制标志符号的阴影。

public:
 int DrawCandidateOutlineGlyph(System::UInt32 dwReserved, IntPtr hdc, cli::array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ pRect, System::UInt32 clrref);
public int DrawCandidateOutlineGlyph (uint dwReserved, IntPtr hdc, Microsoft.VisualStudio.OLE.Interop.RECT[] pRect, uint clrref);
abstract member DrawCandidateOutlineGlyph : uint32 * nativeint * Microsoft.VisualStudio.OLE.Interop.RECT[] * uint32 -> int
Public Function DrawCandidateOutlineGlyph (dwReserved As UInteger, hdc As IntPtr, pRect As RECT(), clrref As UInteger) As Integer

参数

dwReserved
UInt32

中请勿使用。

hdc
IntPtr

nativeint

中要在其中绘制标志符号的显示上下文的句柄。

pRect
RECT[]

中一个指针,指向用于定义标志符号的边框的 RECT 结构。

clrref
UInt32

中标志符号的 RGB 颜色值。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 textmgr:

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

绘制同一标志符号,而不考虑目标是否有效。 如果目标是有效的,将由鼠标光标提供反馈。

适用于