CDialog::EndDialog

This method terminates a modal dialog box. This method returns nResult as the return value of DoModal. Use the EndDialog method to complete processing whenever a modal dialog box is created.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

void EndDialog( int nResult );

See Also

CDialog::DoModal, CDialog::OnOK, CDialog::OnCancel