How to add a scroll bar at the window setup by using glut ?

vertical and horizontal scroll bar

If you want GUI, use an actual GUI toolkit