CAxDialogImpl::EndDialog
Call this method to destroy a modal dialog box.
BOOL EndDialog(
int nRetCode
);
- nRetCode
[in] The value to be returned by DoModal.
TRUE if the dialog box is destroyed; otherwise, FALSE.
EndDialog must be called through the dialog box procedure. After the dialog box is destroyed, Windows uses the value of nRetCode as the return value for DoModal, which created the dialog box.
Note
Do not call EndDialog to destroy a modeless dialog box. Call DestroyWindow instead.
Header: atlwin.h