Click here to Skip to main content
Licence 
First Posted 13 Mar 2002
Views 75,529
Downloads 2,062
Bookmarked 52 times

CTaskProgressDialog: A dialog indicating operation progress for multiple tasks

By | 17 Mar 2002 | Article
Progress indicator for multi-tasks in a project

Please visit my homepage and the Forum for questions, suggestions, and bug reports.

Sample Image - TaskProgDlg.gif
Sample Image - TaskProgDlgHot.gif

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?

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

yellowine

Engineer

United States United States

Member

Yellowine is a fan of MFC. He has been programming for several years.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionHow to add and call my own tasks? Pinmemberchritsche14:31 19 Mar '10  
General[Message Deleted] PinmemberDanny Rodriguez9:16 27 Jan '08  
GeneralDTS PinmemberRashid Thadha0:44 15 Mar '02  
GeneralRe: DTS PinmemberMario M.3:00 15 Mar '02  
GeneralRe: DTS Pinmemberyellowine5:06 15 Mar '02  
GeneralRe: DTS PinmemberMario M.6:29 15 Mar '02  
GeneralRe: DTS Pinmemberyellowine11:05 15 Mar '02  
Mario M. wrote:
but if you add more tasks then the list looks ugly, just try to add twice as more tasks and see that the list creates another column which does not fit in the control...;P
 

 
Yes you are right and I didn't notice that.
 
I have updated the project to change the list ctrl as REPORT view style.
 
Thanks for the comment.
 

GeneralRe: DTS PinmemberAnonymous13:03 19 Mar '02  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120528.1 | Last Updated 18 Mar 2002
Article Copyright 2002 by yellowine
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid