Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if a received mail has some attachments, when we right click on one or more attachments, outlook (2007 and 2010 ) will trigger an event called AttachmentContextMenuDisplay (I find this by outlookSpy), but this does not triggered in outlook2013, any body know something about this?

if not, How can I know which attachment(s) the user was right clicking?

really thanks for your attention. thanks in advance.
Posted
Updated 8-Jul-14 5:42am
v2

1 solution

sorry guys, I solved this by myself. I don't know why outlook 2013 do not trigger the AttachmentContextMenuDisplay event.it does not. so I find the selected attachment(s) by another way.

when we right click on attachments. and click the ribbon button we added on the context menu. we have a param whose type is IRibbonControlPtr we can get the _AttachmentSelectionPtr by call get_Context method. that's it.

reference web site is here http://msdn.microsoft.com/en-us/library/office/ff863628(v=office.15).aspx[^]
 
Share this answer
 
Comments
Dinesh Costa 15-Jul-15 4:29am    
Can you please put up the code ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900