I'm a newbie to wxWindows. I'm trying to make a program, in which you click on a button in a GUI window and it the creates a new window and draws some OpenGL graphics in it. The button function(buttonFunc(), for example) calls WinMain, which creates a new window class and begins rendering. Since I cannot use second WinMain(), I called it WinMain2(). It works but after I close the OpenGL window, the GUI window buttons do not respond to clicks anymore. Does that have something to do with event handling? How can I "return" back to the GUI window? Thanx in advance.
2. Re: wxWindows and OpenGL problems
#4593
Posted by: 2004-06-23 23:22:17
OK, I solved the problem - I did not kill OpenGL window properly and didn't reset some global variables.