在 Outlook 中捕获 BeforeItemCopy 事件

Capture BeforeItemCopy event in Outlook

对于 Outlook 预览窗格中的选定附件项目,如何捕获在单击 "Edit" 菜单中的 "Copy" 列表项后触发的复制事件?

我尝试绑定以下事件,但最终,它们仅在选择邮件项时触发

 ((Outlook.ExplorerEvents_10_Event)Explorer).BeforeItemCopy += new Microsoft.Office.Interop.Outlook.ExplorerEvents_10_BeforeItemCopyEventHandler(ExplorerWrapper_BeforeItemCopy);
 ((Outlook.ExplorerEvents_10_Event)Explorer).BeforeItemCut += new Microsoft.Office.Interop.Outlook.ExplorerEvents_10_BeforeItemCutEventHandler(ExplorerWrapper_BeforeItemCut);

是否有可能实现我想要做的事情? 请提供示例代码。 (展望 2007)

谢谢

您需要找到 CommandBarButton 控件并订阅 Click 事件。尝试使用 Outlook 对象模型中资源管理器 class 的 CommandBars 属性,您将能够找到目标(复制)控件。