Destroy();
}
-bool MyFrame::OnClose(void)
-{
- return TRUE;
-}
-
BEGIN_EVENT_TABLE(TestGLCanvas, wxGLCanvas)
EVT_SIZE(TestGLCanvas::OnSize)
EVT_PAINT(TestGLCanvas::OnPaint)
{
int width, height;
GetClientSize(& width, & height);
-
+
#ifndef __WXMOTIF__
if (GetContext())
#endif