窗口的打开事件和窗口句柄
如何从刚刚打开的 Outlook 窗口获取窗口句柄 (IntPtr)?
OutLook.Items items = oFolder.Items;
foreach (OutLook.MailItem mail in items)
{
mail.Display();
//IntPtr a = (System.IntPtr)mail.GetInspector.Parent;
我是 C Sharp 新手。
How do I get a window handle (IntPtr) from the Outlook window I have just opened?
OutLook.Items items = oFolder.Items;
foreach (OutLook.MailItem mail in items)
{
mail.Display();
//IntPtr a = (System.IntPtr)mail.GetInspector.Parent;
I am new to C sharp.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想我必须接受这个解决方案。我本来希望有更扎实的东西,但这大约是 80% 的扎实。有兴趣看看别人的想法。
它的标准获取窗口标题:
I think I'll have to settle with this solution. I was hoping for something a lot more solid, but this is about 80% solid. Interested to see what others think.
Its standard get window by window title: