Outlook Addin Progress Dialog (ATL)

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
 
M

Mark Werner via OfficeKB.com

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top