hide openGL window

hello i have not found this in any of the books i have and im sure there is something for it out there. is there anyway to hide/get rid of an openGL window. i have a program that i am writting and i have options to display a certain window and then i also need to have the option to take it away. is there any command in glut or openGL that can do this for me?

any help is greatly appreciated.

With glut:

These change the state of the current glut window, but not at once but only after the program returns to the glut main event loop.

Moderator locked the first copy of this thread, and you just posted again? I’d suggest you take the hint, and move this question to a forum that’s suited for the question (probably the platform-dependent forum for whatever platform you’re using).

I did not lock the thread I moved it to the beginners forum. I’m locking this one, please see your original thread in the beginners forum for replies.