IMAPIViewAdviseSink::OnNewMessage
The IMAPIViewAdviseSink::OnNewMessage
method notifies a form viewer that either a new or an existing message has been
loaded in a form.
Quick Info
See IMAPIViewAdviseSink
: IUnknown.
HRESULT OnNewMessage()
Parameters
None
Return Values
S_OK
The call
succeeded.
Remarks
Form objects
call the IMAPIViewAdviseSink::OnNewMessage method whenever a message is
loaded in a form using either the IPersistMessage::InitNew or IPersistMessage::Load method. A viewer often
releases any IMAPIForm interfaces it has open at this point because the
existing form object no longer points to the message the viewer was formerly
viewing.
For
information about implementing the interfaces related to form servers, see MAPI
Form Interfaces Used by Client Applications.
See Also