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.
hwndChild
Identifies the child window.
hwndNewParent
Identifies the new parent window.
The return value identifies the previous parent window.
GetParent