T
Tomislav Petrovic
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.
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.