Sorry for crosspost, I wasn't sure which group is correct for this question.
So...
I have developed a custom form to display some mail items in Outlook in ATL,
by implementing IPersisteMessage, IMAPIForm, IDispatch... interfaces.
STDMETHODIMP Close();
STDMETHODIMP Display();
STDMETHODIMP GetLastError
//IPersistMessage Methods
STDMETHODIMP GetClassID
STDMETHODIMP IsDirty();
STDMETHODIMP InitNew
STDMETHODIMP Load
STDMETHODIMP Save
STDMETHODIMP SaveCompleted
STDMETHODIMP HandsOffMessage();
//IMAPIForm Methods
STDMETHODIMP SetViewContext
STDMETHODIMP GetViewContext
STDMETHODIMP ShutdownForm
STDMETHODIMP DoVerb
STDMETHODIMP Advise
STDMETHODIMP Unadvise
Displaying existing items works fine, Load gets called, DoVerb for display
gets called and I display my view...
What I do not know is what to do when my custom form is used to create new
item.
I display empty view when InitNew gets called and DoVerb gets called.
User edits data in my custom form and presses "Send" button.
My question is What do I do then?!?!?
What methods of what interface do I need to call so message gets sent in the
usual way (placed
in Outbox, transport providers are pooled which one can send, one of them
sends it and
then it gets placed in SentItems)?????
Also, one more question is how can I implement "Save" button so item gets
saved into "Drafts"
folder????
Thank you in advance, Tomy.
Sue Mosher [MVP-Outlook] - 27 Jul 2004 13:41 GMT
Looks like you may have omitted the one newsgroup that covers Extended
MAPI --
microsoft.public.platformsdk.mapi

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Sorry for crosspost, I wasn't sure which group is correct for this question.
>
[quoted text clipped - 42 lines]
>
> Thank you in advance, Tomy.
Tomislav Petrovic - 27 Jul 2004 13:57 GMT
Thanks Sue, sent there too.
Tomy.
> Looks like you may have omitted the one newsgroup that covers Extended
> MAPI --
> microsoft.public.platformsdk.mapi