CDialog::EndDialog

Call this member function to terminate a modal dialog box. This member function returns nResult as the return value of DoModal. You must use the EndDialog function to complete processing whenever a modal dialog box is created.

Syntax

void EndDialog( int nResult );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CDialog Overview, CDialog Member Functions, Dialog Box Classes, CDialog::DoModal, CDialog::OnOK, CDialog::OnCancel