IMAPIViewAdviseSink::OnNewMessage
Applies to: Outlook 2013 | Outlook 2016
Notifies the form viewer that a new or an existing message has been loaded in a form.
HRESULT OnNewMessage( void );
Parameters
None
Return value
S_OK
The notification 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.
Notes to implementers
Release your active pointer to the form object because it no longer points to the message your viewer was formerly viewing.
For more information about form notifications, see Sending and Receiving Form Notifications.