This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ