views:

41

answers:

1

Hi,

how can I open a secondary modal dialog in C++ MFC from a dialog without pressing any button? (If I create a dialog in OnInitDialog(), the first dialog won't appear.)

+2  A: 

Just call ShowWindow(SW_SHOW); in your OnInitDialog just before display the secondary dialog.

Tassos
thank you, thank you, thank you!!
Grch