Compartilhar via


CWindow::SetParent

Altera a janela pai.

HWND SetParent(
   HWND hWndNewParent 
) throw();

Comentários

Consulte SetParent em Windows SDK.

Exemplo

// The following example attaches a HWND to the CWindow object
// and sets the hWndParent as the parent window of the 
// window wrapped by CWindow object using CWindow::SetParent.

CWindow myWindow;
myWindow.Attach(hWndChild);
HWND hWndPrevParent = myWindow.SetParent(hWndParent);

Requisitos

Cabeçalho: atlwin.h

Consulte também

Referência

Classe de CWindow

CWindow::GetParent