Original Post
Hey all. I have until resently been developing console applications in c++ with OpenGL. Now I need to take it one step further and base my program on windows. Using the excellent lesson 1 from I have made my application run from windows based input rather than "glut". I have one problem though. The raw (none of my code) lesson 1 enables fullscreen mode and window mode. When in fullscreen mode and I 'alt'-'tab' to another window it appears as if the screen refresh rate has gone from 85Hz to somewhere around 60Hz (this is what I call flickering). The application 'lesson 1' test whether the window is minimized, and calls this state inactive. This is inside the message loop: case WM_ACTIVATE: // Watch For Window Activate Message { if (!HIWORD(wParam)) // Check Minimization State { active=TRUE; // Program Is Active } else { active=FALSE; // Program Is No Longer Active } return 0; // Return To The Message Loop } I have tried to change the test so it corresponds to whether the window is actually active: case WM_ACTIVATE: // Watch For Window Activate Message { active = LOWORD(wParam); //Check whether application is active } and the test seems to work! The problem has not been solved though, and the screen still flickes when 'alt'-'tab' out of the application. This is offcouse only a problem on CRT-monitors, but I would really like to know how to solve it anyway ;) regards Thomas Dalsgaard