IVsTipWindow.Paint 方法

绘制工具提示窗口。

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

语法

声明
Function Paint ( _
    hdc As IntPtr, _
    prc As RECT() _
) As Integer
int Paint(
    IntPtr hdc,
    RECT[] prc
)
int Paint(
    [InAttribute] IntPtr hdc, 
    [InAttribute] array<RECT>^ prc
)
abstract Paint : 
        hdc:IntPtr * 
        prc:RECT[] -> int
function Paint(
    hdc : IntPtr, 
    prc : RECT[]
) : int

参数

  • hdc
    类型:IntPtr

    [in] 对绘制工具提示窗口中显示上下文的句柄。

  • prc
    类型:array<RECT[]

    [in] 为工具提示窗口中指定边框。

返回值

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

备注

COM 签名

从 textmgr.idl:

HRESULT IVsTipWindow::Paint(
   [in] HDC hdc,
   [in] const RECT *prc
);

此方法由环境执行并由视图通常只调用。 您不必执行此方法。

.NET Framework 安全性

请参阅

参考

IVsTipWindow 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间