CWnd::SetParent

Call this member function to change the parent window of a child window. If the child window is visible, Windows performs the appropriate redrawing and repainting.

Syntax

CWnd* SetParent( CWnd* pWndNewParent );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CWnd Overview, CWnd Member Functions, Window Class Categories, CWnd::GetParent