
Display a dialog window before the main Window
Laurent:
Show your language dialog earlier -- before creating the doc template or
anything. If the user cancels out of your dialog you can return FALSE
from InitInstance() and the main window will never show.
HTH,
David Wilkinson
==============================
Quote:
> Hello,
> a question from a beginner in mfc : how to display a dialog box use to
> choose a language for exemple before the main Window. If i do dlg.DoModal
> before the ShowWindow in the InitInstance method of MyApp the two windows
> are displayed : the main and the dlg !
> Thanks.