I have an scenario in which I need to know if the window being opening is the compose window (that opened when you click on New mail). How can I do it?
Check the value of the Inspector.CurrentItem.Sent
property. Make sure Inspector.CurrentItem
is actually a MailItem
object first.
One way you can do it is by using a FormRegion , which has a FormRegionMode property. That property holds a OlFormRegionMode enumeration value that is set by Outlook based on whether the window is in reading, compose or preview (in-line reading pane) mode.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.