Compartir a través de


Win32Methods.SetParent Method

Changes the parent window of the specified child window.

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

Syntax

'Declaration
Public Shared Function SetParent ( _
    hWnd As IntPtr, _
    hWndParent As IntPtr _
) As IntPtr
public static IntPtr SetParent(
    IntPtr hWnd,
    IntPtr hWndParent
)
public:
static IntPtr SetParent(
    IntPtr hWnd, 
    IntPtr hWndParent
)
static member SetParent : 
        hWnd:IntPtr * 
        hWndParent:IntPtr -> IntPtr
public static function SetParent(
    hWnd : IntPtr, 
    hWndParent : IntPtr
) : IntPtr

Parameters

  • hWnd
    Type: IntPtr

    A handle to the child window that should receive a new parent.

  • hWndParent
    Type: IntPtr

    A handle to the new parent window.

Return Value

Type: IntPtr
If the function succeeds, a handle to the previous parent window, otherwise nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

Win32Methods Class

Microsoft.VisualStudio Namespace