CWindow::SetParent
Ändert das übergeordnete Fenster.
HWND SetParent(
HWND hWndNewParent
) throw();
Hinweise
Siehe SetParent in Windows SDK.
Beispiel
// 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);
Anforderungen
Header: atlwin.h