Поделиться через


CDialogImpl::EndDialog

Destroys a modal dialog box.

BOOL EndDialog(
   int nRetCode 
);

Параметры

Возвращаемое значение

TRUE if the dialog box is destroyed; otherwise, FALSE.

Заметки

EndDialog must be called through the dialog procedure. After the dialog box is destroyed, Windows uses the value of nRetCode as the return value for DoModal, which created the dialog box.

ПримечаниеПримечание.

Do not call EndDialog to destroy a modeless dialog box. Call CWindow::DestroyWindow instead.

Требования

Header: atlwin.h

См. также

Основные понятия

CDialogImpl Class

CDialogImpl Members

CDialogImpl::DialogProc