HWND SetParent( HWND hWndNewParent );
See SetParent in the Win32 SDK.
Remarks
Changes the parent window.
Example
// 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);
CWindow Overview | Class Members
See Also CWindow::GetParent