IMAPIViewAdviseSink::OnNewMessage

The IMAPIViewAdviseSink::OnNewMessage method notifies the 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 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

IMAPIForm : IUnknown, IPersistMessage::InitNew, IPersistMessage::Load