How to attach "Send To" Inspector?

  • Thread starter Thread starter baryon
  • Start date Start date
B

baryon

Hi,
if I started using "Send To|Mail Recipient" of Explore, An
OnApplicationStart event can be attached, because Outlook wasn't
running, have no Explorer. there are a new message already open on my
desktop. I want get at the Inspector and handle it.
I tried some code in OnApplicationStart like
Outlook::_InspectorPtr pInspector = _pApplication->ActiveInspector();
then failed, pInspector == NULL
and _pApplication->Inspectors->Count == 0;

How can I attach "Send To" Inspector?

thank you

Baryon
 
You can't officially. There is no NewInspector event and no ActiveInspector.
For Outlook 2002 and later the item is added to the Inspectors collection,
so you could do something like running a timer and checking the Inspectors
collection for a new Inspector that you didn't know about from NewIspector.

The best place to ask Outlook programming questions is in an Outlook
programming newsgroup, BTW, not here.
 
You can't. Messages created with Simple MAPI (which is what Send To uses) don't trigger a NewInspector event or add to the Inspectors collection, by design.

Consider replacing the Send To shortcut with a shortcut to invoke Outlook.exe and the /a switch.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Actually, Sue, they do add to the Inspectors collection for Outlook 2002 and
later. No NewInspector event however. I've hooked Simple MAPI Inspectors by
iterating the Inspectors collection using timer intervals, it works just
fine.




You can't. Messages created with Simple MAPI (which is what Send To uses)
don't trigger a NewInspector event or add to the Inspectors collection, by
design.

Consider replacing the Send To shortcut with a shortcut to invoke
Outlook.exe and the /a switch.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Makes sense. Thanks!

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top