View Single Post
  #4  
Old August 10th 09, 02:49 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook::ExplorerEvents::SelectionChange()

Just a system timer, set that and when it fires you have the event to handle
displaying your dialog. As long as the timer runs on the main thread there
should be no problems.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"John Erickson" wrote in message
...
If you're referring to SetTimer and then reacting to the WM_TIMER message,
then I would have to sublass Outlook's window to catch the message.
Subclassing their window is something I'm trying to avoid. Not because
it's
difficult, but because I want to be as friendly to Outlook as possible.
Plus
I would still have issues with what do I do if another selection change
occurs. It could be possible to make another selection before the timer
went
off. Dealing with all that may be more trouble than just making it
modeless.
I have to deal with selection changes while I'm modeless, but I don't have
to
deal with the timer and the subclassing.


Ads