CWnd::SetParent

CWnd*SetParent(CWnd*pWndNewParent);

Return Value

A pointer to the previous parent window object if successful. The returned pointer may be temporary and should not be stored for later use.

Parameters

pWndNewParent

Identifies the new parent window.

Remarks

Changes the parent window of a child window.

If the child window is visible, Windows performs the appropriate redrawing and repainting.

CWnd OverviewClass MembersHierarchy Chart

See Also   , CWnd::GetParent