次の方法で共有


IVsWindowPane.CreatePaneWindow Method

Creates a window pane.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣言
Function CreatePaneWindow ( _
    hwndParent As IntPtr, _
    x As Integer, _
    y As Integer, _
    cx As Integer, _
    cy As Integer, _
    <OutAttribute> ByRef hwnd As IntPtr _
) As Integer
'使用
Dim instance As IVsWindowPane
Dim hwndParent As IntPtr
Dim x As Integer
Dim y As Integer
Dim cx As Integer
Dim cy As Integer
Dim hwnd As IntPtr
Dim returnValue As Integer

returnValue = instance.CreatePaneWindow(hwndParent, _
    x, y, cx, cy, hwnd)
int CreatePaneWindow(
    IntPtr hwndParent,
    int x,
    int y,
    int cx,
    int cy,
    out IntPtr hwnd
)
int CreatePaneWindow(
    [InAttribute] IntPtr hwndParent, 
    [InAttribute] int x, 
    [InAttribute] int y, 
    [InAttribute] int cx, 
    [InAttribute] int cy, 
    [OutAttribute] IntPtr% hwnd
)
function CreatePaneWindow(
    hwndParent : IntPtr, 
    x : int, 
    y : int, 
    cx : int, 
    cy : int, 
    hwnd : IntPtr
) : int

Parameters

  • hwndParent
    Type: System.IntPtr

    [in] Handle to the parent window.

  • hwnd
    Type: System.IntPtr%

    [out] Pointer to a handle to the new window pane.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsWindowPane::CreatePaneWindow(
   [in] HWND hwndParent,
   [in] int x,
   [in] int y,
   [in] int cx,
   [in] int cy,
   [out] HWND *hwnd);

Tells you when to create your window and who to parent your window to.

Permissions

See Also

Reference

IVsWindowPane Interface

IVsWindowPane Members

Microsoft.VisualStudio.Shell.Interop Namespace