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

  • Thread starter Thread starter Steve
  • Start date Start date
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
 
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.
 
Nope - that always returns the EntryID of the selected item, and not the one
of the right-clicked.
 
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.
 
Back
Top