区分 Compose 检查器和 Read 检查器

发布于 2024-08-21 13:13:29 字数 176 浏览 1 评论 0原文

有没有办法判断 Outlook 2007 中的当前检查器窗口是“阅读”窗口还是“撰写”窗口?

我知道我们可以捕获事件,并在其上设置标志,但我不想捕获新建/回复/转发事件。有没有办法从 Inspector 对象中看出这一点?有财产吗?有 MAPI 属性吗?

正确方向的指针将不胜感激。

问候,

Is there a way to tell if the current inspector window, in Outlook 2007, is a Read window, or a Compose window?

I know we can capture events, and set flags on it, but I dont want to capture New/Reply/Forward events. Is there a way to tell this from the Inspector object? Any property? Any MAPI property?

A pointer in the right direction will be appreciated.

Regards,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天涯离梦残月幽梦 2024-08-28 13:13:29

可能最简单的方法是查看检查器 CurrentItem 是否已发送

 Outlook.MailItem currentMail = Inspector.CurrentItem as Outlook.MailItem;

        if (currentMail != null)
        {
            if (currentMail.Sent)
            {
                //Read Mode

            }
            else
            { 
                // Compose
            }

        }

Probally the easiest way is to see if the Inspectors CurrentItem is Sent or not

 Outlook.MailItem currentMail = Inspector.CurrentItem as Outlook.MailItem;

        if (currentMail != null)
        {
            if (currentMail.Sent)
            {
                //Read Mode

            }
            else
            { 
                // Compose
            }

        }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文