If a GLUT application has a "scanf" before initialization of GLUT, the GLUT window will show up at the bottom of the stack of the windows on W2000. It can be demonstrated by putting a "scanf" function call just before the glutInit line in the simple.c example program included with GLUT. Adding glutPopWindow at different places did not seem to help. If the "scanf" is removed, the GLUT window shows up at top of the window stack as desired. The "main" of simple.c with the "scanf" is shown below.
Thanks
main(int argc, char **argv)
{
//adding the scanf line causes the graphics window to show up at bottom of window stack
float r;
printf("input a number\n");
scanf("%f",&r);
printf("%f\n",r);
glutInit(&argc, argv);
glutCreateWindow("single triangle");
glutDisplayFunc(display);
glutReshapeFunc(reshape);
glutMainLoop();
return 0; /* ANSI C requires main to return int. */
}
[This message has been edited by LBear (edited 11-18-2002).]





