how make that the view not stretch in the screen?

hi I’m using some polygon cube, and when I resizing the window, the view and cube is stretch
how i can do that the view doing that the model looks small or far away if the window is stretched by side, and near, if the window is maximized. how is apreciated in some applications of 3d

thanks! in advance

You have to tie glViewports calls to changes in the GL projection to link aspect ratio to the window ratio.

A tutorial here :
http://www.lighthouse3d.com/tutorials/glut-tutorial/preparing-the-window-for-a-reshape/