V
vinkal.chudgar
Hi,
I have developed outlook addin in ATL.
I am using MS Outlook 2003.
when user compose a new mail and press a send button,Send event is
captured which is associated with OnSendMail()and hence OnSendMail()
function gets called.
In OnSendMail(), i am saving mail as ".msg" (say 1.msg) file on Disk.
Now i want to disable send button in such manner that
when someone double click ".msg" file (say 1.msg) stored on disk the
send button should seem to be disabled
OnSendFunction look likes as follows:
void __stdcall OnSendMail(IDispatch* /*Office::_CommandBarButton*/
Ctrl,VARIANT_BOOL * CancelDefault)
{
CComQIPtr < Outlook::_MailItem > spMail(Ctrl);
spMail->SaveAs("c:\\1.msg");
}
I would be grateful to me , if someone could give me code example or
some direction.
Regards,
Vinkal
I have developed outlook addin in ATL.
I am using MS Outlook 2003.
when user compose a new mail and press a send button,Send event is
captured which is associated with OnSendMail()and hence OnSendMail()
function gets called.
In OnSendMail(), i am saving mail as ".msg" (say 1.msg) file on Disk.
Now i want to disable send button in such manner that
when someone double click ".msg" file (say 1.msg) stored on disk the
send button should seem to be disabled
OnSendFunction look likes as follows:
void __stdcall OnSendMail(IDispatch* /*Office::_CommandBarButton*/
Ctrl,VARIANT_BOOL * CancelDefault)
{
CComQIPtr < Outlook::_MailItem > spMail(Ctrl);
spMail->SaveAs("c:\\1.msg");
}
I would be grateful to me , if someone could give me code example or
some direction.
Regards,
Vinkal