Condividi tramite


CWindow::SetParent

Modifica della finestra padre.

HWND SetParent(
   HWND hWndNewParent 
) throw();

Note

Vedere SetParent in Windows SDK.

Esempio

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

Requisiti

Header: atlwin.h

Vedere anche

Riferimenti

Classe di CWindow

CWindow::GetParent