1
Vote

Show how to display a confirmation when cancelled

description

When the user presses the Cancel button, the wizard is instantly dismissed. Show how to display a confirmation dialog.

comments

rlipscombe wrote Apr 10, 2011 at 9:49 AM

Handle OnQueryCancel in either the derived wizard class, or in the active page. Usually in the wizard class, I'm guessing.

rlipscombe wrote Apr 10, 2011 at 9:50 AM

...or maybe not. Depends on where in the wizard pages you are. For example, pressing Cancel before the progress page might result in a message. Pressing Cancel afterwards, you're already done, so say something different. Pressing Esc on the final page is way too late. Treat it as if Finish was pressed.