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
- hWnd
Type: System.IntPtr
Handle to the child window
- hWndParent
Type: System.IntPtr
Handle to the new parent window
Return Value
Type: System.IntPtr
Returns a handle to the new parent window on success; null otherwise.
.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.