Display a dialog window before the main Window 
Author Message
 Display a dialog window before the main Window

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.



Sat, 05 Oct 2002 03:00:00 GMT  
 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.



Sat, 05 Oct 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. main dialog window is blocked by second dialog window

2. displaying dialog box with my main window..

3. Displaying Dialog Box On the Main Window

4. problem with displaying dialogs from dlls in the main window

5. displaying dialog box with my main window..

6. Dialog box as a main window in windows 95, using Win32 SDK only (MSVC 5.00)

7. Dialog owned by main window not hidden when main minimized

8. Q: Display variable in main window

9. How to change the main frame window text display

10. Display ListCtrl in main window

11. Displaying a ListBox in the Main Frame Window

12. Main Window with dynamically-created child windows containing controls

 

 
Powered by phpBB® Forum Software