Get EntryID of item right-clicked, but not selected in Outlook Explorer ???

S

Steve

Hi there,

is there any way to get the EntryID of an object which is right-clicked in
an Explorer, but not currently selected?

I've got some code to get the EntryID of the currently selected item, and
that works fine, but I did note find any way to get the Entry ID of an
unselected item, where a right-click occurs on.

There must be a way, as Outlook offers several actions (Open, Print etc.)
when right-clicking an un-selected item in Explorer view, and those actions
affect the item that has been right-clicked, and not the one which is
currently selected.

Thanks for any help.

Steve
 
K

Ken Slovak - [MVP - Outlook]

Not really. There's some code that let's you add items to the context menu
but it's a hack and nothing else is exposed in the way of context menus. The
context menu information is at
http://www.outlookcode.com/codedetail.aspx?id=314

From Explorer.CommandBars.OnUpdate you can get Explorer.Selection but I'm
not sure if that changes when you right click an item that isn't selected.
You'd have to play with the code to see what the selection is at that point.
 
S

Steve

Nope - that always returns the EntryID of the selected item, and not the one
of the right-clicked.
 
K

Ken Slovak - [MVP - Outlook]

Then without somehow figuring out where the click occurs in the screen and
correlating that to which item is where on the screen you can't do what you
want.
 

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