Re: DoModal()

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



hamishd wrote:
What is the difference between this->EndDialog(IDOK); and CDialog::OnOK
(); ?

hamishd:

Go to the source:

void CDialog::OnOK()
{
if (!UpdateData(TRUE))
{
TRACE(traceAppMsg, 0, "UpdateData failed during dialog termination.\n");
// the UpdateData routine will set focus to correct item
return;
}
EndDialog(IDOK);
}


--
David Wilkinson
Visual C++ MVP
.