Compartir a través de


CWindow::GetParent

recupera la ventana primaria inmediata.

HWND GetParent( ) const throw();

Comentarios

Vea GetParent en Windows SDK.

Ejemplo

// The following example attaches a HWND to the CWindow object 
// and calls CWindow::GetParent to find out the parent 
// window of the window wrapped by CWindow object.

CWindow myWindow;
myWindow.Attach(hWnd);   
HWND hWndParent = myWindow.GetParent();

Requisitos

encabezado: atlwin.h

Vea también

Referencia

CWindow Class

CWindow::SetParent