What is the trick to handling the title-bar buttons. I'm not really concerned with min/max but mostly the close button so I can preempt the closing of the application and gracefully shutdown my application threads...
What event do I need to trap?
Thanks,
D