获得开放式对话窗口 [英] Getting the Open Conversation Window

查看:119
本文介绍了获得开放式对话窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Win 32 API GetForegroundWindow,我们可以获取Office Communicator对话窗口的句柄。但是使用这个hwnd可以获得对话窗口的历史记录。

Using Win 32 API GetForegroundWindow we can get the handle of the Office Communicator Conversation Window. But using this hwnd can we get the history of the Conversation Window.

推荐答案

使用Win32 API,而不是使用OC自动化API,用于在对话开始时从OC获取OnIMWindowCreated事件。 这将为您提供Window Handle,您可以使用IMessengerConversationWindowAdvanced :: History()方法获取窗口内容的

Instead of using the Win32 API, use the OC automation API to get the OnIMWindowCreated event from OC when a conversation is started.  That will give you the Window Handle and you can use the IMessengerConversationWindowAdvanced::History() method to get the contents of the window.

 

此示例包含OC自动化API的包装类,您可以将其作为起点。

This sample has wrapper classes for the OC automation API, that you can use as a starting point.

 

http ://ocsdkwrapper.codeplex.com/

http://ocsdkwrapper.codeplex.com/

 

 


这篇关于获得开放式对话窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆