IVsSplitter.GetParentWindow 方法

获取父窗口此窗格。

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

语法

声明
Function GetParentWindow ( _
    <OutAttribute> ByRef phwndParent As IntPtr _
) As Integer
int GetParentWindow(
    out IntPtr phwndParent
)
int GetParentWindow(
    [OutAttribute] IntPtr% phwndParent
)
abstract GetParentWindow : 
        phwndParent:IntPtr byref -> int
function GetParentWindow(
    phwndParent : IntPtr
) : int

参数

  • phwndParent
    类型:IntPtr%

    [out] 父的窗口句柄。

返回值

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

备注

COM 签名

从 textmgr.idl:

HRESULT IVsSplitter::GetParentWindow(
   [out] HWND *phwndParent
);

所有窗格具有同一父窗口,是叶节点窗格创建的所有子窗口父级。

.NET Framework 安全性

请参阅

参考

IVsSplitter 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间