Nehe code: window staying on taskbar

Started by
4 comments, last by Psycho-Coder 21 years, 6 months ago
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.
Advertisement
Hmm maybe somebody can give me a link to some other openGL basecode that does not do 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!
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!
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.
If you want to see more about this subject go to this post:

http://gamedev.net/community/forums/topic.asp?topic_id=119499

Also post anything you would post here there!

This topic is closed to new replies.

Advertisement