Archived

This topic is now archived and is closed to further replies.

Psycho-Coder

Nehe code: window staying on taskbar

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites