Nehe code: window staying on taskbar
I use some part of Nehe OpenGL code for my apps. I have just one smll problem. Sometimes (not allways) when I quit the app via the ESC key the program quits ok, but the window title stays on the taskbar. When i click on it, it dissapears. Its onlya a small problem but it gets frustrating when I have 20+ small boxes on the task bar. This only happens with fullscreen. I use Win98se. It also happens with the NeHe tutorials. Does anybody know how to fix this.
Make sure there''s a PostQuitMessage(0); return 0; under WM_CLOSE
and/or please post the exit code.
2DNow - Specializing in yesterday''s technology today!
and/or please post the exit code.
2DNow - Specializing in yesterday''s technology today!
I dont have the code on the PC im writing this, but If u want to try it just download any of the nehe tutorials lesson1 will do, run it and hold down the F1 key for a few seconds and you will see. I use the exit code from the nehe tutorials.
I´ll try the PostQuitMessage(0); as soon as I get to my code!
I´ll try the PostQuitMessage(0); as soon as I get to my code!
Hmm the PostQuitMessage(0); return 0; is under VM_CLOSE
Ive pinpointed the problem to the resolution changing code, especially the code that changes the resol back to desktop.
Ive pinpointed the problem to the resolution changing code, especially the code that changes the resol back to desktop.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement