Right triangles and prisms - Exploration

On the left you can see a right triangle ABC and the squares built on its sides. You can change the triangle by dragging its vertex C. Use the slider h to build prisms having those squares as bases. Explore the construction by interacting with the point and the slider. What is the relation between the volumes of the prisms?