Link to home
Start Free TrialLog in
Avatar of whluk
whluk

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Toronado
Toronado

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of whluk
whluk

ASKER

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
Avatar of whluk

ASKER

sorry, toronado
can you also show me the timer code?..
as I don't quite understand...

Thx
Jacky
Avatar of whluk

ASKER

it would be better off for me to show the complete source coding... sorry, do I expect too much?
Thx
Jacky
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.
Avatar of whluk

ASKER

Will it cause any problems if I want to change the size, typeface and color of the text in the dialog boxes? And How?

Hi whluk,

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

Toronado