Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法判断 Outlook 2007 中的当前检查器窗口是阅读窗口还是撰写窗口?
我知道我们可以捕获事件并在其上设置标志,但我不想捕获新/回复/转发事件。有没有办法从 Inspector 对象中分辨出来?有什么财产吗?任何 MAPI 属性?
指向正确方向的指针将不胜感激。
问候,
可能最简单的方法是查看 Inspectors CurrentItem 是否已发送
Outlook.MailItem currentMail = Inspector.CurrentItem as Outlook.MailItem; if (currentMail != null) { if (currentMail.Sent) { //Read Mode } else { // Compose } }