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
Printable View
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
Wm_destroy
WM_DESTROY should do it
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?