The SetWindowPos API function is propably what you're looking for.

Check ww.allapi.net for declaration and usage.