Export (0) Print
Expand All
MFC
Expand Minimize

CWnd::SetParent

Changes the parent window of a child window.

CWnd* SetParent( 
   CWnd* pWndNewParent  
);

pWndNewParent

Identifies the new parent window.

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.

Header: afxwin.h

Community Additions

ADD
Show:
© 2014 Microsoft