Click to See Complete Forum and Search --> : How to create a process bar at the beginning of Dialog?


May 4th, 1999, 09:35 PM
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.

May 26th, 1999, 12:44 PM
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.