如何使用VSTO外接程序用于Outlook桌面显示或隐藏Outlook信息栏(Office 365)

时间:2019-04-23 12:46:45

标签: c# outlook vsto

当不通过使用加载项取消邮件来转发邮件时,会显示Outlook的信息栏。

试图使用WIN32 api隐藏它,但由于没有正确的操作方法信息而无法执行。

使用的API方法是:

[DllImport("User32.dll", CharSet = System.Runtime.InteropServices.CharSet.Auto)]
private static extern IntPtr FindWindow(string lpClassName, string lpWindowName);

[DllImport("User32.dll", CharSet = System.Runtime.InteropServices.CharSet.Auto)]
private static extern bool ShowWindow(IntPtr hwnd, int nCmdShow);

[DllImport("User32.dll", CharSet = System.Runtime.InteropServices.CharSet.Auto)]
private static extern bool EnableWindow(IntPtr hwnd, bool enabled);

[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);

必须找到一种使用win32 api或其他任何方式隐藏和显示信息栏的方法。

0 个答案:

没有答案
相关问题