Click here to Skip to main content
15,886,095 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need to open a messagebox after launching the GUI Application Window. There should be some delay between GUI Launched and then messagebox popping up.

The Application is written using VC++ and MFC.

Please let me know how should I do it?

Thanks & Regards,
Nitin
Posted
Comments
Chris Maunder 19-Apr-11 8:56am    
Show us what you've tried and ask a specific question on what's blocking you and then we can help you.

1 solution

Chris is right, but here's a general answer... you probably just need an AfxMessageBox() after the creation of the dialog (so it should be coded within the CDialog derived class). To add a delay, create a timer within OnInitDialog() and have the timer handler create the AfxMessageBox(), kill the timer afterward so you don't get the message box popping up periodically.
 
Share this answer
 
Comments
Olivier Levrey 19-Apr-11 12:13pm    
My 5. Proposed as answer.
Albert Holguin 19-Apr-11 12:54pm    
thank you oliver :)
Joan M 2-May-11 11:56am    
exactly! 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900