Win32Methods::SetParent Method (IntPtr, IntPtr)

 

Changes the parent window of the specified child window.

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

public:
static IntPtr SetParent(
	IntPtr hWnd,
	IntPtr hWndParent
)

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 null.

Return to top
Show: