Win32Methods.SetParent(IntPtr, IntPtr) Método

Definição

Altera a janela pai da janela filho especificada.

public:
 static IntPtr SetParent(IntPtr hWnd, IntPtr hWndParent);
public static IntPtr SetParent (IntPtr hWnd, IntPtr hWndParent);
static member SetParent : nativeint * nativeint -> nativeint
Public Shared Function SetParent (hWnd As IntPtr, hWndParent As IntPtr) As IntPtr

Parâmetros

hWnd
IntPtr

Identificador para a janela filho.

hWndParent
IntPtr

Identificador para a nova janela pai. Se esse parâmetro for nulo, a janela da área de trabalho se tornará a nova janela pai.

Retornos

IntPtr

Um identificador para a janela pai anterior indica êxito. NULL indica falha.

Aplica-se a