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: IntPtrA handle to the child window that should receive a new parent.
hWndParent
Type: IntPtrA 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.