creating and destroying subwindows

Hi,

I’m making a program that has a map built into it. What I want to do is use a subwindow to display this map. I can create the subwindow but I can’t figure out how to get rid of it when I am done with it. Does anybody have any ideas?

all replies are greatly appreciated

Typically you’ll want to hide the window, because chances are the user will want to use it again later.

In the Windows API, it’s something along the lines of ShowWindow(hWnd, FALSE) - look it up.

But you haven’t told us what platform you’re using.

I am using glut to do all my opengl rendering

Hope this helps:
http://www.lighthouse3d.com/opengl/glut/index.php?subwin
-Ehsan-

I tried that, but I want to be able to bring it back up multiple times.