Quit abruptly in MFC app

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2004
Posts: 12
Reputation: MitchellH is an unknown quantity at this point 
Solved Threads: 1
MitchellH MitchellH is offline Offline
Newbie Poster

Quit abruptly in MFC app

 
0
  #1
Nov 26th, 2004
Hi,

I am new to MFC and have been practicing and currently have run into a problem: I have a "Quit" button and its mapped to a function already but how do I abruptly end the program? What function do I call?

Thank you,
Mitchell H.

EDIT: Ive just added this and it works, but i'll keep this thread open for input:

  1. void CPrestoClose2Dlg::OnQuit()
  2. {
  3. SendMessage(WM_CLOSE);
  4. }
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC