Export (0) Print
Expand All
Expand Minimize
2 out of 2 rated this helpful - Rate this topic


Changes the parent window of a child window.

CWnd* SetParent(
   CWnd* pWndNewParent 


Identifies the new parent window.

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.


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

See Also

CWnd Overview | Class Members | Hierarchy Chart | SetParent | CWnd::GetParent

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.