You could try to use the function MoveWindow instead
MoveWindow(0, 0, transRect.right, transRect.bottom, TRUE) instead