View Full Version : creating and destroying subwindows

06-02-2005, 07:32 PM

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

06-02-2005, 10:01 PM
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.

06-03-2005, 08:27 AM
I am using glut to do all my opengl rendering

Ehsan Kamrani
06-03-2005, 02:26 PM
Hope this helps:

06-03-2005, 06:31 PM
I tried that, but I want to be able to bring it back up multiple times.