Hesitate Closing

Discussion in 'Web Design & Coding' started by Complete, Oct 11, 2007.

  1. Complete

    Complete OSNN Addict

    If you wanted to override the closing of an application in MFC such that when the user clicks to close the program, it hesitates until other threads are closed, how would you do it. In other words, if the user clicks on the red X in the upper right hand of the program, it does not close right away. How would you override this functionality?
  2. X-Istence

    X-Istence * Political User

    You make sure to include in your shutdown method a call to the other threads to shut down, and then you close the main application after all memory is neatly cleaned up.