Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / September 2003

Tip: Looking for answers? Try searching our database.

InspectorEvents for Close on New Inspector (VC++)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tobias Svensson - 29 Aug 2003 16:06 GMT
Hi
I have an C++ Outlook 2000 addin that has a sink for
Outlook::InspectorsEvents for olContactItems. On New Inspector Event I set
up a new sink to Outlook::InspectorEvents to be able to track when the
Inspector window is closed. I get Activate, Deactivate events as well as
Close event when I choose "File - Close" or clicking on close button in top
right corner of the contact item. So far so good. However when I click "Save
and Close" the Close event is never generated. I get a Deactivate event and
thats it. I need the Close event to free some resources.

Does anyone have an ide, what I am doing wrong. Seems strange that the Close
event is not generated when the item is saved.

/regards Tobias
Michael Tissington - 03 Sep 2003 21:05 GMT
Will the Write event work for you?

Signature

Michael Tissington
Oaklodge Technologies
http://www.oaklodge.com/technology

> Hi
> I have an C++ Outlook 2000 addin that has a sink for
[quoted text clipped - 10 lines]
>
> /regards Tobias
Tobias Svensson - 05 Sep 2003 10:31 GMT
Hi
I found a soullution.
I changed the sink event from Outlook::InspectorEvents to
Outlook::ItemEvents. There is a Close event ( 0xf004 ) in
Outlook::ItemEvents also and it is triggered in all cases.

/Tobias

> Will the Write event work for you?
>
[quoted text clipped - 21 lines]
> >
> > /regards Tobias
Kiran Kumar - 11 Sep 2003 10:28 GMT
HI Tobias,
   Can you please tell me how to write a sink for ItemEvents

Thanks in advance
/kiran
> Hi
> I found a soullution.
[quoted text clipped - 30 lines]
> > >
> > > /regards Tobias
David McAlister - 26 Sep 2003 20:05 GMT
You don't get a Close event because its not yet closed.  Outlook does some
crazy caching, it will close the item as you have found, but it will keep
the inspector (somewhere) and use it again later.  This can lead to very
unpredictable results if you are not careful - your event sink will remain
attached and will start to get events again when the inspector is reused !!!

Dave

> Hi
> I have an C++ Outlook 2000 addin that has a sink for
[quoted text clipped - 10 lines]
>
> /regards Tobias
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.