Поделиться через


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

См. также

Основные понятия

CWnd Class

CWnd Members

Hierarchy Chart

SetParent

CWnd::GetParent