Please visit my homepage and the Forum for questions, suggestions, and bug reports.
Introduction
Many of you have seen a kind of dialog showing multiple task installations for applications like Netscape and Explorer. A multi-task dialog can be summarized as a task area and a progress bar embedded in the dialog. The task area is a list of text strings showing multiple tasks to be performed. The progress bar indicates the percentage of task completed. It is quite common that image icons are associated with each text string to indicate the processing state of the task (See figure above). It is also common that many applications involve a series of lengthy operations which can be visually represented by the task dialog, e.g., Adobe Illustrator (AI) reads different files (binary AI native file and embedded image files) when opening .AI documents.
CTaskProgressDialog
is implemented to visually represent those lengthy operations. It is modified from a progress bar dialog generated by Visual Studio. It behaves like a modaless dialog. If a user clicks on the Cancel button on the dialog during processing, the dialog will be dismissed without completion of the process.
How to use
Use of CTaskProgressDialog
is fairly easy. Just following those steps below:
- Declare a
CTaskProgressDialog
member variable in an appropriate class of your project;
- Insert the dialog resource and source files (TaskProgressDlg.h, TaskProgressDlg.cpp) into your project;
- Instantiate, initialize, and show the dialog;
- Dimiss the dialog and do not forget to free the dialog memory;
If you are not sure on how to use the dialog, take a look at the demo project.
Please visit my homepage and the Forum for questions, suggestions, and bug reports.
Version History
- v1.1 03-12-02
- Change list view of list ctrl to report view
- Selection (first picture) and Hot mode (second picture) are supported for indicating the current task being processed.
- V1.0 03-12-02 First version
Any comments, questions, or bug report?