Guidance Forums / wxWidgets (wxWindows) in C++ / wxWindows and OpenGL problems

Search 搜索
Home Home

Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. wxWindows and OpenGL problems
Posted by: 2004-06-23 08:17:12
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.
Message2. Re: wxWindows and OpenGL problems
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.
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
© Thu 2024-6-20  Guidance Laboratory Inc. Hits:0