I am creating a wizard, and I want to support some customization features that aren't available using the standard MFC Wizard. So my wizard consists of several dialogs that are displayed and removed as the user moves through the application.
Here is the problem:
When the user clicks NEXT or BACK, the current dialog disappears and the new dialog appears, causing the user to see nothing on the screen for a 1/4 second.
This is unlike the MFC Wizard -- since it uses property pages and property sheets, the background of the Wizard never disappears and the transition is very smooth.
My problem is caused because OnNext() or OnBack() essentially calls CurrnetDialog.EndDialog() then calls NewDialog.DoModal(). The time spent in-between these two functions is what causes the dialogs to "blink".
I know a few sloppy ways to correct this problem, but have still not found that "elegant" solution that I am looking for. If you can come up with an elegant solution, please provide a few lines of source to help explain it. Thanks.