捕获 AttachmentCotextMenuDisplay 事件(Outlook 2013)
Capture the AttachmentCotextMenuDisplay event (Outlook 2013)
我一直在使用以下非常有效的事件捕获 Outlook 2010 的附件上下文菜单。
_application.AttachmentContextMenuDisplay +=new Outlook.ApplicationEvents_11_AttachmentContextMenuDisplayEventHandler(_application_AttachmentContextMenuDisplay);
但是,当尝试使用相同的方式捕获 Outlook 2013 的上下文菜单时,无法按预期工作。
我还尝试重新调整 XML 中的上下文菜单,如下所示,每行都会抛出错误 "Specified control type is incompatible with actual control type "context menu"。
有没有可靠的方法可以在 Outlook 2013 中捕获此事件?
<contextMenus>
<contextMenu idMso="ContextMenuAttachments">
<button idMso="ContextMenuAttachments" onAction="test"/>
<toggleButton idMso="ContextMenuAttachments" onAction="test"/>
<dynamicMenu idMso="ContextMenuAttachments" getContent="test"/>
</contextMenu></contextMenus>
谢谢。
for Outlook 2013 using the same way does not work as expected.
您具体使用了什么代码?你能更具体一点吗? "doesn't work" 是什么意思?
无论如何,要重新调整功能区控件的用途,您需要使用命令标记。有关详细信息,请参阅 Temporarily Repurpose Commands on the Office Fluent Ribbon。
Office 2013 Help Files: Office Fluent User Interface Control Identifiers 列表包含所有可用的控件 ID。
我一直在使用以下非常有效的事件捕获 Outlook 2010 的附件上下文菜单。
_application.AttachmentContextMenuDisplay +=new Outlook.ApplicationEvents_11_AttachmentContextMenuDisplayEventHandler(_application_AttachmentContextMenuDisplay);
但是,当尝试使用相同的方式捕获 Outlook 2013 的上下文菜单时,无法按预期工作。
我还尝试重新调整 XML 中的上下文菜单,如下所示,每行都会抛出错误 "Specified control type is incompatible with actual control type "context menu"。
有没有可靠的方法可以在 Outlook 2013 中捕获此事件?
<contextMenus>
<contextMenu idMso="ContextMenuAttachments">
<button idMso="ContextMenuAttachments" onAction="test"/>
<toggleButton idMso="ContextMenuAttachments" onAction="test"/>
<dynamicMenu idMso="ContextMenuAttachments" getContent="test"/>
</contextMenu></contextMenus>
谢谢。
for Outlook 2013 using the same way does not work as expected.
您具体使用了什么代码?你能更具体一点吗? "doesn't work" 是什么意思?
无论如何,要重新调整功能区控件的用途,您需要使用命令标记。有关详细信息,请参阅 Temporarily Repurpose Commands on the Office Fluent Ribbon。
Office 2013 Help Files: Office Fluent User Interface Control Identifiers 列表包含所有可用的控件 ID。