Click here to Skip to main content
15,918,168 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIn MFC, which event works when user clicks on close button? Pin
ayca23-May-04 11:29
ayca23-May-04 11:29 
AnswerRe: In MFC, which event works when user clicks on close button? Pin
Gary R. Wheeler23-May-04 12:11
Gary R. Wheeler23-May-04 12:11 
AnswerRe: In MFC, which event works when user clicks on close button? Pin
Curi0us_George23-May-04 12:24
Curi0us_George23-May-04 12:24 
GeneralRe: In MFC, which event works when user clicks on close button? Pin
ayca25-May-04 6:03
ayca25-May-04 6:03 
GeneralRe: In MFC, which event works when user clicks on close button? Pin
Curi0us_George25-May-04 6:22
Curi0us_George25-May-04 6:22 
AnswerRe: In MFC, which event works when user clicks on close button? Pin
Joe Woodbury23-May-04 13:15
professionalJoe Woodbury23-May-04 13:15 
AnswerRe: In MFC, which event works when user clicks on close button? Pin
Blake Miller25-May-04 15:28
Blake Miller25-May-04 15:28 
GeneralRe: In MFC, which event works when user clicks on close button? Pin
ayca26-May-04 12:01
ayca26-May-04 12:01 
OK, I did the same. The window closes there is no problem with that. But the problem is; I am using a process which uses soundcard inside the program, I play some voice on soundcard, and I want to stop it before user presses close button and closes application. I have the function that closes my process, I implemented an event handler to the exit event on exit menu item, and it worked. I wanted to do the same for event that works when close button is pressed, but this time my application window closes but the process does not, it still works. And when I hook up Task Manager i see that my application is also still working, which shows me that my window is destroyed but the application is still running.
GeneralAqua Pin
TrungHuynh23-May-04 11:28
TrungHuynh23-May-04 11:28 
GeneralRe: Aqua Pin
l a u r e n23-May-04 13:44
l a u r e n23-May-04 13:44 
GeneralRe: Aqua Pin
Michael Dunn23-May-04 16:33
sitebuilderMichael Dunn23-May-04 16:33 
GeneralMFC listbox usage Pin
kfaday23-May-04 10:50
kfaday23-May-04 10:50 
GeneralRe: MFC listbox usage Pin
Andrew Quinn AUS23-May-04 22:10
Andrew Quinn AUS23-May-04 22:10 
GeneralPrinting text from combo and edit box Pin
Eversman23-May-04 10:44
Eversman23-May-04 10:44 
GeneralUnicode text in VC .NET Controls Pin
MKomeily23-May-04 10:37
MKomeily23-May-04 10:37 
Generalunregistered dialog Pin
Anonymous23-May-04 10:28
Anonymous23-May-04 10:28 
GeneralMac look&feel in Windows App Pin
merlinos23-May-04 8:47
merlinos23-May-04 8:47 
GeneralRe: Mac look&feel in Windows App Pin
Ravi Bhavnani23-May-04 10:02
professionalRavi Bhavnani23-May-04 10:02 
GeneralRe: Mac look&feel in Windows App Pin
Joe Woodbury23-May-04 10:25
professionalJoe Woodbury23-May-04 10:25 
GeneralRe: Mac look&feel in Windows App Pin
merlinos23-May-04 13:28
merlinos23-May-04 13:28 
GeneralRe: Mac look&feel in Windows App Pin
Dimitris Vasiliadis24-May-04 12:36
Dimitris Vasiliadis24-May-04 12:36 
GeneralNeed "measuring time" suggestion Pin
J.B.23-May-04 8:03
J.B.23-May-04 8:03 
GeneralRe: Need "measuring time" suggestion Pin
User 665823-May-04 8:50
User 665823-May-04 8:50 
GeneralRe: Need "measuring time" suggestion Pin
Curi0us_George23-May-04 12:01
Curi0us_George23-May-04 12:01 
GeneralRe: Need "measuring time" suggestion Pin
Joe Woodbury23-May-04 13:38
professionalJoe Woodbury23-May-04 13:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.