display a dialog box within a dialog application

I have a program which displays a dialog box (dialog based program),
After the program displays a dialog box with a message 'hello 123',the user might click Ok to see another dialog box... then the second dialog box is shown for 5 seconds then a third dislog appears... what approach can I use to accomplish this? The background is stimulated to use outlook express...

Thanks
Jacky
whlukAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ToronadoCommented:
Hi whluk,

If I understand the question right, try the following.

You can set up a timer which will call the OnOk function of the active dialog.
Than it will disapear after some time and when the user clicks OK.
The only thing you have to do is to setup a list of DoModal () calls in the InitInstance function of the main program.

BOOL CProgrammerApp::InitInstance()
{
 // Some code.

 CProgrammerDlg dlg, dlg2;
 m_pMainWnd = &dlg;

 if (dlg.DoModal() == IDOK)
 {
  m_pMainWnd = &dlg2;
  if (dlg2.DoModal() == IDOK)
  {
   // ect.
  }
 }
 else
 {
 }
}

You should make a better piece of code for this, but the idea should work.

Success,
 Toronado.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
whlukAuthor Commented:
I have been thinking about writing a script file that runs 3 individual dialog based application to stimulate the mentioned effect. How do I create script to run C++ or other exe programs

Thx
Jacky
0
whlukAuthor Commented:
sorry, toronado
can you also show me the timer code?..
as I don't quite understand...

Thx
Jacky
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

whlukAuthor Commented:
it would be better off for me to show the complete source coding... sorry, do I expect too much?
Thx
Jacky
0
ToronadoCommented:
Hi whluk,

Timer code :

Call SetTimer (1, 5000, NULL); in your InitDialog function.
Also add ON_WM_TIMER()to the messagemap and the void OnTimer(UINT nIDEvent)memberfunction to your dialogclass.

The OnTimer function will be called after 5 secconds. In this function call the OnOk () or EndDialog (). The dialog will disapear.

By the way, is this in fact the same question as "related to last question on buttons"? I saw that Zoppo has the same solution on the other question.

May be we should switch to one question.

Regards,
 Toronado.
0
whlukAuthor Commented:
Will it cause any problems if I want to change the size, typeface and color of the text in the dialog boxes? And How?

0
ToronadoCommented:
Hi whluk,

What's on the dialog doesn't affect the behaviour of the dialog itself.

Toronado
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.