heres the code that repositions the runtime window from winblitz3d, i never could get SetWindowPos() to work correctly.
use SetWindowLong() to change the windows style
kev
HDWP r = BeginDeferWindowPos(1);
HDWP t = DeferWindowPos(r,runtimewindow,0,x,y,width,height,SWP_FRAMECHANGED | SWP_SHOWWINDOW | SWP_NOZORDER );
EndDeferWindowPos(r);
use SetWindowLong() to change the windows style
kev