展望2010年闭幕活动
如何在用户关闭 Outlook 时附加处理程序?
private void ThisAddIn_Shutdown(object sender, System.EventArgs e) 基本上不起作用。
在这里: VSTO Outlook 集成 - 用于同步的 Outlook 关闭事件
我已经找到了连接 Explorer.Close() 和 Inspector.Close() 的建议。
在这里: http://social. msdn.microsoft.com/forums/en-US/vsto/thread/7e3c3a98-2b01-4def-a83c-f560e4672e73
Helmut 正在附加这样的处理程序:
_Inspector = inspector as Outlook.InspectorClass;
// register for the close event - used to release ourself from memory - intercept the close event
_Inspector.InspectorEvents_Event_Close += new Outlook.InspectorEvents_CloseEventHandler(_Inspector_InspectorEvents_Event_Close);
但我无法在我的计算机上重复它(也许这是我的新观点......)
有人可以帮忙吗?
How to attach a handler when the user is closing outlook?
private void ThisAddIn_Shutdown(object sender, System.EventArgs e) basicly doesn't work.
in here:
VSTO Outlook integration - Outlook shutdown event for synchronization
I've found a suggestion to hook up to Explorer.Close() and Inspector.Close().
In here:
http://social.msdn.microsoft.com/forums/en-US/vsto/thread/7e3c3a98-2b01-4def-a83c-f560e4672e73
Helmut is attaching a handler like this:
_Inspector = inspector as Outlook.InspectorClass;
// register for the close event - used to release ourself from memory - intercept the close event
_Inspector.InspectorEvents_Event_Close += new Outlook.InspectorEvents_CloseEventHandler(_Inspector_InspectorEvents_Event_Close);
but there is no way I could repeat it on my machine (maybe it's my newer outlook...)
Anyone could help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须将文件注入到 OUTLOOK.EXE 进程中,并且在此 dll 中,您必须在 WndProc 中处理 WM_CLOSE 消息。尝试此链接:如何处理 WNDPROC。此链接向您解释了一切,但这是关于您拥有 WM_CLOSE 的 GETMINMAXINFO 消息: 所有关于注入 int WNDPROC
You Must Inject file Into OUTLOOK.EXE process and in this dll you must Do Handle for WM_CLOSE message in WndProc. Try This Link : How to Handle WNDPROC. And this link explain you everything but this is about GETMINMAXINFO message you have WM_CLOSE : All About Injecting int WNDPROC