Progress Bar in a Dialog based application
Posted on 2000-03-08
My application is a dialog based application in VC++ 6.0
On click of a button i am creating a modeless dialog consisting of a static text field,a ProgressBarControl and a cancel button.
From the main dialog i am using a for loop to increment the progress bar and check if the user has pressed the cancel button.
Everything works fine except that the for loop does not seem to release control and the user cannot press the cancel button.
I dont understand why the progress dialog does not reconise any events during the for loop in the main dialog.
below is the code
pDialog = new Demo(this);