I have included in my application a dialog class that displays a window with a CProgressCtrl control and a Cancel button during a heavy process.
The problem is that the button and any CStatic objects (text...) put on the dialog are not displayed during the data processing, but are displayed only when all processing ends and the parent program returns in idle mode. The only object always visible is the progress control, that is updated regularly with the SetPos() during processing.
I create this window with
prgDialog.Create(IDD_PROGRESS, NULL);
prgDialog.ShowWindow(SW_SHOW);
and destroy it with
prgDialog.DestroyWindow();
Thanks to everybody,
francesco
The problem is that the button and any CStatic objects (text...) put on the dialog are not displayed during the data processing, but are displayed only when all processing ends and the parent program returns in idle mode. The only object always visible is the progress control, that is updated regularly with the SetPos() during processing.
I create this window with
prgDialog.Create(IDD_PROGRESS, NULL);
prgDialog.ShowWindow(SW_SHOW);
and destroy it with
prgDialog.DestroyWindow();
Thanks to everybody,
francesco