Click here to Skip to main content
15,891,409 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to initialize SetTimer command in the child dialog for updating values instantly in that dialog itself. The child dialog opens when a button is pressed in the first dialog. I don't even have OnInitDialog() in child dialog. What is the use of OnInitDialog?
And suppose if I am able to achieve initialising SetTimer, How can I stop the timer when I close the dialog?

What I have tried:

I tried initialising in the constructor, but I couldn't run the application.
Posted
Updated 19-Feb-19 23:53pm
Comments
Richard MacCutchan 20-Feb-19 5:39am    
You can add the OnInitDialog yourself to your class. However, it is not clear why you need a timer in a dialog.

1 solution

This appears to be the same issue as My display is not instantly updating with the time in GUI in MFC application[^]. Please edit that question and add a proper explanation of what your problem is.
 
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