###User Defined Function###
_WinAPI_SetParent

###Description###
Changes the parent window of the specified child window

###Syntax###
#include <WinAPI.au3>
_WinAPI_SetParent ( $hWndChild, $hWndParent )


###Parameters###
@@ParamTable@@
$hWndChild
	Window handle of child window
$hWndParent
	Handle to the new parent window. If 0, the desktop window becomes the new parent window.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	A handle to the previous parent window
Failure:	0, call <a href="_WinAPI_GetLastError.htm">_WinAPI_GetLastError()</a> to get extended error information
@@End@@


###Remarks###
An application can use the SetParent function to set the parent window of a pop-up, overlapped, or child
window. The new parent window and the child window must belong to the same application.


###Related###


###See Also###
@@MsdnLink@@ SetParent


###Example###
@@IncludeExample@@
