void GLCtrl::State(int reason) { if( InitializationProblem ) return; if( IsInitialized ) { switch( reason ) { case SHOW: { if( IsShown() && !IsMapped ) MapWindow(); if( !IsShown() && IsMapped ) UnMapWindow(); }; break; case LAYOUTPOS: { MoveSubWindow(); OpenGLResize(); }; break;
case CLOSE: { CloseGL(); }; break;
default: break; } } else if( GetTopWindow() && GetTopWindow()->GetWindow() ) OpenGL(); }
Report message to a moderator