Compartir a través de


CWindow::SetParent

cambia la ventana primaria.

HWND SetParent(
   HWND hWndNewParent 
) throw();

Comentarios

Vea SetParent en Windows SDK.

Ejemplo

// 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

encabezado: atlwin.h

Vea también

Referencia

Clase de CWindow

CWindow::GetParent