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

I want to restart my MFC Application to reload toolbar and menubar.
Which function can I use to restart it.

Please help me.
Regards,

P/s: There are a topic in codeproject about this but I can not understand/
Posted

1 solution

The worst solution one can offer for this purpose is restarting the application. This idea tells me you poorly undestand life cycle of application.

Don't do it!

Not only modification if menu and toolbar during run-time is much more robust solution, this is much easier to implement, practically trivial. Start from here: http://msdn.microsoft.com/en-us/library/f9hbax0b(v=vs.80).aspx[^], http://msdn.microsoft.com/en-us/library/2601c0kc(v=vs.80).aspx[^].

—SA
 
Share this answer
 

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