Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
'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 = 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
- 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.