ok I see there is a method NewInspector but how to trap it.
for instance, when I want to trap ItemClose or ItemWrite event, I
create a object then I pass in parameter in the DispEventAdvise method
my object
olapp->raw_CreateItem(Outlook::olMailItem, &pDisp);
mail = pDisp;
mail->Display(v1);
hr = CloseItemAppEvents::DispEventAdvise((IDispatch*)mail);
hr = WriteItemAppEvents::DispEventAdvise((IDispatch*)mail);
You register your InpectorsEvents interface with the Inspectors object. You
retrieve the Inspectors object from the Outlook Application object. It seems
like you need to spend sometime studying the Outlook Object Model. Try using
the Object Browser. It allows you to view the Outlook objects, their methods
and events. You can also browse the .tlh file.
> ok I see there is a method NewInspector but how to trap it.
> for instance, when I want to trap ItemClose or ItemWrite event, I
[quoted text clipped - 7 lines]
> hr = CloseItemAppEvents::DispEventAdvise((IDispatch*)mail);
> hr = WriteItemAppEvents::DispEventAdvise((IDispatch*)mail);
cyan21 - 29 Jun 2005 13:11 GMT
is it fired when a "confirming" box is displayed ( for example when you
made modification on an object and you close the window with the "X"
button) ?