다음을 통해 공유


Win32Methods.SetParent Method

Changes the parent window of the specified child window.

Namespace:  Microsoft.VisualStudio
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

‘선언
Public Shared Function SetParent ( _
    hWnd As IntPtr, _
    hWndParent As IntPtr _
) As IntPtr
‘사용 방법
Dim hWnd As IntPtr
Dim hWndParent As IntPtr
Dim returnValue As IntPtr

returnValue = Win32Methods.SetParent(hWnd, _
    hWndParent)
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: System.IntPtr
    A handle to the child window that should receive a new parent.
  • hWndParent
    Type: System.IntPtr
    A handle to the new parent window.

Return Value

Type: System.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

Win32Methods Members

Microsoft.VisualStudio Namespace