如何在 Outlook 中的联系人项目窗口中添加工具栏按钮?

发布于 2024-08-06 20:03:42 字数 61 浏览 3 评论 0原文

我正在开发 Outlook 插件。一项要求是向联系人项目窗口添加一个工具栏按钮。谁能告诉我如何实施它?谢谢。

I am developing an add-in for Outlook. One requirement is to add a toolbar button to the contact item window. Can anyone tell me how to implement it? Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁吢 2024-08-13 20:03:42

根据您想要支持的 Outlook 版本,您必须使用两种方法。

关于展望< 2007 您可以通过 myInspector.CommandBars.Add("my commandbar") 添加新的命令栏 (MSDN)或通过例如 myInspector.CommandBars.Item(1) 使用现有的 (MSDN)。
然后通过 myCommandBar.Controls.Add() 添加一个按钮 (

Outlook >= 2007 上,您需要自定义功能区,这需要更多的编写工作。 自定义 Outlook 2007 中的功能区对此进行了很好的介绍。

Depending on what Outlook versions you want to support you have to use two approaches.

On Outlook < 2007 you either add a new commandbar via myInspector.CommandBars.Add("my commandbar") (MSDN) or use an existing one via e.g. myInspector.CommandBars.Item(1) (MSDN).
Then add a button via myCommandBar.Controls.Add() (MSDN).

On Outlook >= 2007 you need to customize the ribbon which is a bit more writing work. Customizing the Ribbon in Outlook 2007 is a good introduction into that.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文