C
Chris
I've implemented a form viewer based on the Microsoft FormViewer sample:
http://support.microsoft.com/default.aspx?scid=kb;en-us;230770
What I'm seeing with both my implementation and the FormViewer sample is
that there's a difference in behaviour when forwarding an item, depending on
the Outlook setting "close on forward or reply message".
When "close on forward or reply message" is disabled:
Clicking the forward button from the open message, creates a new form on
which CMyMAPIFormViewer::SetAdviseSink is called. When this new message is
sent, CMyMAPIFormViewer::SubmitMessage is called and the object is completely
destroyed. On closing the original open message,
CMyMAPIFormViewer::SetAdviseSink is called with a null parameter.
When "close on forward or reply message" is enabled:
Clicking the forward button from the open message, creates a new form on
which CMyMAPIFormViewer::SetAdviseSink is called. When this new message is
sent, CMyMAPIFormViewer::SubmitMessage is called and the object is completely
destroyed.
However in this case, the original message is closed by Outlook but
CMyMAPIFormViewer::SetAdviseSink is not called.
Does anyone have any ideas why this is so?
Thanks in advance,
Chris
http://support.microsoft.com/default.aspx?scid=kb;en-us;230770
What I'm seeing with both my implementation and the FormViewer sample is
that there's a difference in behaviour when forwarding an item, depending on
the Outlook setting "close on forward or reply message".
When "close on forward or reply message" is disabled:
Clicking the forward button from the open message, creates a new form on
which CMyMAPIFormViewer::SetAdviseSink is called. When this new message is
sent, CMyMAPIFormViewer::SubmitMessage is called and the object is completely
destroyed. On closing the original open message,
CMyMAPIFormViewer::SetAdviseSink is called with a null parameter.
When "close on forward or reply message" is enabled:
Clicking the forward button from the open message, creates a new form on
which CMyMAPIFormViewer::SetAdviseSink is called. When this new message is
sent, CMyMAPIFormViewer::SubmitMessage is called and the object is completely
destroyed.
However in this case, the original message is closed by Outlook but
CMyMAPIFormViewer::SetAdviseSink is not called.
Does anyone have any ideas why this is so?
Thanks in advance,
Chris