IVsWindowPane.CreatePaneWindow 方法
创建窗口窗格。
命名空间: Microsoft.VisualStudio.Shell.Interop
程序集: Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)
语法
声明
Function CreatePaneWindow ( _
hwndParent As IntPtr, _
x As Integer, _
y As Integer, _
cx As Integer, _
cy As Integer, _
<OutAttribute> ByRef hwnd As IntPtr _
) As Integer
int CreatePaneWindow(
IntPtr hwndParent,
int x,
int y,
int cx,
int cy,
out IntPtr hwnd
)
参数
- hwndParent
类型:System.IntPtr
[in] 处理到父窗口。
- x
类型:System.Int32
[in] 绝对 x 轨迹高度。
- y
类型:System.Int32
[in] 绝对 y 轨迹高度。
- cx
类型:System.Int32
[in] x 轨迹高度相对 x。
- cy
类型:System.Int32
[in] y 轨迹高度相对 y。
- hwnd
类型:System.IntPtr%
[out] 对处理的指针新的窗口窗格。
返回值
类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 vsshell.idl:
HRESULT IVsWindowPane::CreatePaneWindow(
[in] HWND hwndParent,
[in] int x,
[in] int y,
[in] int cx,
[in] int cy,
[out] HWND *hwnd);
父窗口时告诉您创建窗口,并谁。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。