1
如何使用VSTO在Outlook 2007的新消息窗口和收件箱窗口中创建加载项按钮。在新消息窗口和收件箱窗口中创建加载项按钮
该代码添加按钮,Outlook 2007中的主窗口
//Define the existent Menu Bar
menuBar = this.Application.ActiveExplorer().CommandBars.ActiveMenuBar;
//Define the new Menu Bar into the old menu bar
newMenuBar = (Office.CommandBarPopup)menuBar.Controls.Add(
Office.MsoControlType.msoControlPopup, missing,
missing, missing, false);
我使用Visual Studio 2005中安装了Office 2007