NativeMethods.SetParent Method

Sets the parent window of the specified child window.

Namespace:  Microsoft.VisualStudio
Assembly:  Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)

Syntax

'Declaration
Public Shared Function SetParent ( _
    hWnd As IntPtr, _
    hWndParent As IntPtr _
) As IntPtr
'Usage
Dim hWnd As IntPtr
Dim hWndParent As IntPtr
Dim returnValue As IntPtr

returnValue = NativeMethods.SetParent(hWnd, _
    hWndParent)
public static IntPtr SetParent(
    IntPtr hWnd,
    IntPtr hWndParent
)
public:
static IntPtr SetParent(
    IntPtr hWnd, 
    IntPtr hWndParent
)
public static function SetParent(
    hWnd : IntPtr, 
    hWndParent : IntPtr
) : IntPtr
static member SetParent : 
        hWnd:IntPtr * 
        hWndParent:IntPtr -> IntPtr 

Parameters

Return Value

Type: System.IntPtr
Returns a handle to the new parent window on success; null otherwise.

.NET Framework Security

See Also

Reference

NativeMethods Class

NativeMethods Members

Microsoft.VisualStudio Namespace