开发者

Differentiating between a Compose Inspector and a Read Inspector

开发者 https://www.devze.com 2022-12-20 09:43 出处:网络
Is there a way to tell if the current inspector window, in Outlook 2007, is a Read window, or a Compose window?

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 o开发者_运维知识库n 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,


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
            }

        }
0

精彩评论

暂无评论...
验证码 换一张
取 消