在outlook2013中未触发AttachmentContextMenuDisplay事件 [英] AttachmentContextMenuDisplay event not triggered in outlook2013

查看:116
本文介绍了在outlook2013中未触发AttachmentContextMenuDisplay事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果收到的邮件有一些附件,当我们右键单击一个或多个附件时,outlook(2007和2010)将触发一个名为AttachmentContextMenuDisplay的事件(我通过outlookSpy找到它),但这不会在outlook2013中触发,任何身体对此有所了解吗?



如果没有,我怎么知道用户正确点击了哪些附件?



非常感谢您的关注。提前谢谢。

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.

推荐答案

对不起伙计们,我自己解决了这个问题。我不知道为什么outlook 2013不会触发AttachmentContextMenuDisplay事件。它没有。所以我通过另一种方式找到所选的附件。



当我们右键点击附件时。然后单击我们在上下文菜单中添加的功能区按钮。我们有一个类型为IRibbonControlPtr的param,我们可以通过调用get_Context方法获取_AttachmentSelectionPtr。就是这样。



参考网站在这里 http://msdn.microsoft.com/en-us/library/office/ff863628(v = office.15).aspx [ ^ ]
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[^]


这篇关于在outlook2013中未触发AttachmentContextMenuDisplay事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆