CWnd* SetParent( CWnd* pWndNewParent );
pWndNewParent
Identifies the new parent window.
Changes the parent window of a child window.
If the CWnd is visible, Windows performs the appropriate redrawing and repainting.
A pointer to the previous parent window object. The returned pointer may be temporary.
::SetParent, CWnd::GetParent