OpenGL Glut window problem

Started by
-1 comments, last by backspin 15 years, 10 months ago
Hi, I wrote an dialog based MFC application with Glut window. The window is not fitted into dialog. When I try to close the Glut window clicking on this small window cross the application crashes. When I press ESC button it is calling glutDestroyWindow(window) function and closing without any errors. Is there a way to set a handler to this small cross closing the application or disable it that the user don't click on it???

This topic is closed to new replies.

Advertisement