SetParent

  HWND SetParent(hwndChild, hwndNewParent)    
  HWND hwndChild; /* handle of window whose parent is changing */
  HWND hwndNewParent; /* handle of new parent window */

This function changes the parent window of a child window. If the window identified by the hwndChild parameter is visible, Windows performs the appropriate redrawing and repainting.

Parameters

hwndChild

Identifies the child window.

hwndNewParent

Identifies the new parent window.

Return Value

The return value identifies the previous parent window.

See Also

GetParent