Have a look at SetWindowPos function and its second parameter
HWND hWndInsertAfter