IPersistMessage::InitNew
The IPersistMessage::InitNew
method provides a form with a base message on which to build a new message.
Quick Info
See IPersistMessage
: IUnknown
HRESULT InitNew(
LPMAPIMESSAGESITE pMessageSite, |
|
LPMESSAGE pMessage |
|
) |
|
Parameters
pMessageSite
[in] Pointer
to the message site the form uses to compose a new message.
pMessage
[in] Pointer
to the message the form uses to compose a new message.
Return Values
S_OK
The call
succeeded and has returned the expected value or values.
Remarks
Form viewers
call the IPersistMessage::InitNew method to set up
a form with a message site and a message so as to compose a new message within
the form. When a message is loaded into a form with InitNew, you can
assume that the following required properties, and no others, have been set by
form server implementations:
PR_DELETE_AFTER_SUBMIT
PR_IMPORTANCE
PR_ORIGINATOR_DELIVERY_REPORT_REQUESTED
PR_PRIORITY
PR_READ_RECEIPT_REQUESTED
PR_SENSITIVITY
PR_SENTMAIL_ENTRYID
For more
information on initializing new storage objects, see the OLE Programmer s
Reference.