How to create a process bar at the beginning of Dialog?
Hi:
I want to use a process bar in a dialog,when the dialog appears,the process will begin to work,I don't want to use any button in the dialog,so I push the code at the function OnInitDialog().But when the dialog appears,the process has finished.How can I control it?Please help me.
Re: How to create a process bar at the beginning of Dialog?
You have at least two options:
1) Add a public member function to your dialog class and put the code in it. Once your dialog is created, you can call this member function from outside of your dialog class.
2) Override OnTimer(). Set a timer just before your return call in OnInitDialog(), then add your progress code in the timer handler.