The framework calls this member function when the user clicks the Cancel button or presses the ESC key in a modal or modeless dialog box.
virtual void OnCancel( );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CDialog Overview, CDialog Member Functions, Dialog Box Classes, CDialog::OnOK, CDialog::EndDialog