I want to add a function that does something when the x on the top right hand side of the window is pressed. Is there a function that recognizes when the program is exiting?
I want to add a function that does something when the x on the top right hand side of the window is pressed. Is there a function that recognizes when the program is exiting?
When the X button is pushed, a WM_CLOSE msg is sent to the winow. Just handle that msg and put your function in there.
Look in your code for WM_CLOSE
you will be see the exit code
PostQuitMessage
anything you want to do before it closes must go before here
Monday - what a way to spend a seventh of your life
I looked at case, but didnt try it because I dont know what it does. Maybe a little explination before anyone tries it would be nice. Send me the link when you get some information on it......
C++ Is Powerful
I use C++
There fore I am Powerful
Case is a computer acronym search engine that searches over 700 computer and related acronyms. the description is available if you click on 'about case'. However i see your point and have added a line to the page explaning what it is. The next update (at some point tonight will add a furher 2-300 acronyms to the database)
Thanks for the input and i hope you all find case to be a useful tool.
iain
([email protected])
Last edited by iain; 09-08-2001 at 02:03 PM.
Monday - what a way to spend a seventh of your life