N
Narottam
Hi,
I have custom messages(custom message class) and have written the callbacks
to handle context menus.
For Reply context menu i have written a handler C++/ATL. Below is the xml
file entries and code handler for this.
<commands>
<command idMso="Reply"
onAction="OnContextMenuClick"/>
</commands>
Below is the code
===========
STDMETHODIMP CAddin::OnContextMenuClick(IDispatch* ribbonControl,VARIANT*
CancelDefault)
{
if(our custom class msg selected)
do operation for open form
------
CancelDefault->boolVal = VARIANT_FALSE;
else
for normal IPM.Note messages
CancelDefault->boolVal = VARIANT_FALSE;
}
Now for custom messages, outlook form is opened with custom message as
attachment which is exactly what is expected.
I have also implemented below interfaces in my formviewer class like MFCMAPI
IMAPIMessageSite
IMAPIViewAdviseSink
IMAPIViewContext
After Clicking the "Send" button in Outlook e-mail form the "SubmitMessage"
of IMAPIMessageSite is called and everything returns S_OK and the message is
also send successfully, but form doesn't close. It remains on the foreground.
Is there is something need to tell to Outlook to close the mail form
specifically?
I couldn't find any help for this. Can someone let me know if there is
something wrong?
Thanks,
Narottam
I have custom messages(custom message class) and have written the callbacks
to handle context menus.
For Reply context menu i have written a handler C++/ATL. Below is the xml
file entries and code handler for this.
<commands>
<command idMso="Reply"
onAction="OnContextMenuClick"/>
</commands>
Below is the code
===========
STDMETHODIMP CAddin::OnContextMenuClick(IDispatch* ribbonControl,VARIANT*
CancelDefault)
{
if(our custom class msg selected)
do operation for open form
------
CancelDefault->boolVal = VARIANT_FALSE;
else
for normal IPM.Note messages
CancelDefault->boolVal = VARIANT_FALSE;
}
Now for custom messages, outlook form is opened with custom message as
attachment which is exactly what is expected.
I have also implemented below interfaces in my formviewer class like MFCMAPI
IMAPIMessageSite
IMAPIViewAdviseSink
IMAPIViewContext
After Clicking the "Send" button in Outlook e-mail form the "SubmitMessage"
of IMAPIMessageSite is called and everything returns S_OK and the message is
also send successfully, but form doesn't close. It remains on the foreground.
Is there is something need to tell to Outlook to close the mail form
specifically?
I couldn't find any help for this. Can someone let me know if there is
something wrong?
Thanks,
Narottam