Re: DoModal()
- From: David Wilkinson <no-reply@xxxxxxxxxxxx>
- Date: Mon, 12 Jan 2009 12:07:11 -0500
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
.
- Follow-Ups:
- Re: DoModal()
- From: Joseph M . Newcomer
- Re: DoModal()
- References:
- DoModal()
- From: hamishd
- Re: DoModal()
- From: David Ching
- Re: DoModal()
- From: hamishd
- Re: DoModal()
- From: Joseph M . Newcomer
- Re: DoModal()
- From: hamishd
- DoModal()
- Prev by Date: Re: How to monitor Only one File
- Next by Date: Re: problem writing cstring to file
- Previous by thread: Re: DoModal()
- Next by thread: Re: DoModal()
- Index(es):