|
-
February 24th, 2012, 02:20 PM
#1
Catching a closing dialog window
Is there a message that I can handle in a dialog box that gets called regardless of how the dialog is closed? I need to save changed data whether the user clicks OnOK, OnCancel, or the menu "X" button or presses the ESC key.
Thanks
-
February 24th, 2012, 02:27 PM
#2
Re: Catching a closing dialog window
Victor Nijegorodov
-
February 24th, 2012, 02:27 PM
#3
Re: Catching a closing dialog window
-
February 24th, 2012, 04:33 PM
#4
Re: Catching a closing dialog window
Thanks guys.
The VS wizard created OnDestroy for me and the comments say to put my code after the call to CDialog::OnDestroy(). Is the window still valid at that point, or should I avoid writing anything to the text controls?
-
February 24th, 2012, 04:42 PM
#5
Re: Catching a closing dialog window
 Originally Posted by Dave C
Thanks guys.
The VS wizard created OnDestroy for me and the comments say to put my code after the call to CDialog::OnDestroy(). Is the window still valid at that point, or should I avoid writing anything to the text controls?
Wouldn't it be faster to write the code and check than to post here and wait for a response?
-
February 24th, 2012, 04:45 PM
#6
Re: Catching a closing dialog window
 Originally Posted by Dave C
Thanks guys.
The VS wizard created OnDestroy for me and the comments say to put my code after the call to CDialog::OnDestroy(). Is the window still valid at that point, or should I avoid writing anything to the text controls?
Don't you know how to debug?
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|