HWND SetParent(hWndChild,hWndNewParent)
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.
Parameter | Type/Description |
hWndChild | HWND Identifies the child window. | |
hWndNewParent | HWND Identifies the new parent window. |
The return value identifies the previous parent window.