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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
sorry, toronado
can you also show me the timer code?..
as I don't quite understand...
Thx
Jacky
can you also show me the timer code?..
as I don't quite understand...
Thx
Jacky
ASKER
it would be better off for me to show the complete source coding... sorry, do I expect too much?
Thx
Jacky
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.
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.
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
What's on the dialog doesn't affect the behaviour of the dialog itself.
Toronado
ASKER
Thx
Jacky