Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CWnd::SetParent
Collapse the table of content
Expand the table of content

CWnd::SetParent

Changes the parent window of a child window.

CWnd* SetParent(
   CWnd* pWndNewParent 
);

Parameters

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.

Remarks

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

See Also

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

Show:
© 2015 Microsoft