IMAPIViewAdviseSink::OnNewMessage

Applies to: Office 2010 | Outlook 2010 | Visual Studio

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.

See Also

Reference

IMAPIForm : IUnknown

IPersistMessage::InitNew

IPersistMessage::Load

IMAPIViewAdviseSink : IUnknown