How to attach "Send To" Inspector?

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
 
K

Ken Slovak - [MVP - Outlook]

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.
 
S

Sue Mosher [MVP-Outlook]

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
 
K

Ken Slovak - [MVP - Outlook]

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
 
S

Sue Mosher [MVP-Outlook]

Makes sense. Thanks!

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

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

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