Trigger event on explorer right click (unselected item)?

J

james

(reposted from microsoft.public.win32.programmer.messaging)

Is there any way to catch the event for the user action of
right-clicking on an unselected explorer item, and clicking "reply"?

I have an add-in working in OL2003 / W2KPro where:
* Reply event _is_ triggered from an open inspector.
* Reply event _is_ triggered after user has selected an item in the
explorer

But:
Reply event is _not_ triggered if the user right-clicks on an
(unselected) item in the explorer and selects Reply.

Is there any way to trigger this event?

As the item isn't yet in an inspector, nor is it selected, it doesn't
seem as if we have an item that we specify events for.

Any ideas?

James
 
J

james

Yes, that works, I do get the item with this event, but I want to catch
the original item and manipulate it before it gets to the Inspector.

The tasks is:
Clean the subject line before it is presented in the Inspector window
(ie remove instances of specific strings)

james
 
D

Dmitry Streblechenko

You can look at the ConversationIndex property. If the length is 44 chars,
it is an original message. Otherwise remove 10 trailings chars and look for
a message with that value of ConversationIndex.
Not very efficient, but this is the best you can do IMHO.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
J

james

Dmitriy, thanks for tip.

What about setting the reply event on *each* message in the open
explorer. I could see this would work well for mailboxes with small
numbers of messages, but would be quite painful when the number of
messages was in the 100's.

Also inefficient, but doesn't seem as if we have a direct method.
 
D

Dmitry Streblechenko

That wouldn't be a good idea - besides being inefficient, you can also run
out of 255 RPC channels/process limit in case of Exchange as each referenced
item would open its own RPC channel.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

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