Share via


IFormProvider::ComposeMessageForm

The ComposeMessageForm method creates the compose message form.

Syntax

HRESULT ComposeMessageForm(
  IMessageFormHost * phost,
  LPMESSAGE pmsg,
  IMessageForm ** ppForm,
  FORMTYPE eFormType,
  LPMESSAGE pMsgBase,
  MESSAGEFIELDS * pMsgFields
);

Parameters

  • phost
    [in] Reference to the IMessageFormHost object that allows the form to communicate with Messaging.
  • pmsg
    [in] Reference to the IMessage message object to compose.
  • ppForm
    [out] Reference to the newly created IMessageForm compose message form object.
  • eFormType
    [in] The type of form, specified by the FORMTYPE enumeration.
  • pMsgBase
    [in] Reference to the message to prefill the form, if there is one.
  • pMsgFields
    [in] Reference to the message fields for the new message.

Return Values

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

  • S_OK
    Indicates success.

Requirements

Smartphone: Windows Mobile 2002
OS Versions: Windows CE 3.0
Header: cemapi.h
Library: cemapi.lib

See Also

IFormProvider

Messaging

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.