Condividi tramite


CWindow::GetParent

Recupera la finestra padre immediata.

HWND GetParent( ) const throw();

Note

Vedere GetParent in Windows SDK.

Esempio

// 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();

Requisiti

Header: atlwin.h

Vedere anche

Riferimenti

Classe di CWindow

CWindow::SetParent