有没有办法判断Outlook 2007中的当前检查器窗口是读取窗口还是"撰写"窗口?
我知道我们可以捕获事件,并在其上设置标志,但我不想捕获新的/回复/转发事件.有没有办法从Inspector对象中告诉它?任何财产?任何MAPI属性?
将赞赏正确方向的指针.
问候,
在最近,最简单的方法是查看Inspectors CurrentItem是否已发送
Outlook.MailItem currentMail = Inspector.CurrentItem as Outlook.MailItem;
if (currentMail != null)
{
if (currentMail.Sent)
{
//Read Mode
}
else
{
// Compose
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1571 次 |
| 最近记录: |