Outlook Addin Progress Dialog (ATL)

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

I have an addin that I've written in ATL. I need to create a progress
dialog for to diplay when my addin is taking a long time to process
messages. Any suggestions on the best way to do this?

Thanks,

Chris
 
Chris,

Unless you are processing Outlook items in some sort of loop (e.g., looping
through each contact and updating the contact) a progress bar is not a
viable solution since Outlook has no event status of progress. An hour-
glass cursor is the correct implementation in this case. If you insist on
showing status through some sort of progress bar and not looping, you will
need to create a seperate thread and update the status every x msec (or sec
for very long processes); but understand the progress is not 'real'
progress and you will never know when to hit 100%. Some sort of animiation
(like the hourglass) is more appropriate. In a project I wrote years ago I
did not like the hourglass and wanted a progress bar. I made a thread and
had the progress bar move back and forth like the Kit in the Night Rider TV
show :-).

Mark
 
Back
Top