Hi all,

I want to create a special confirmation dialog (like the AfxMessageBox() == IDYES).

I have a dialog created. How can I decide which code is returned from DoModal? If that is not possible, I want to create a new function int AskConfirmation().

But then I need to set the return value as soon as the dialog closes.

Any idea how to do this?

Thanks!