IFormProviderEx::CreateReadForm

Windows Mobile 6.5
4/8/2010

The CreateReadForm method creates the read message form for displaying the message.


HRESULT CreateReadForm (
  IMessageFormHostEx * pHost,
  LPMESSAGE pmsg,
  HWND hwndForm,
  HWND * phwndBody,
  IMessageFormEx ** ppForm
);

pHost

[in] Reference to the IMessageFormHostEx object that allows the form to communicate with Messaging.

pmsg

[in] Reference to the message object to show.

hwndForm

[out] Handle of the form frame.

phwndBody

[out] Reference to the handle of the read message form' body window.

ppForm

[out] Reference to the newly created read message form object.

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

S_OK

Indicates success.

CreateReadForm is called by Messaging to create the form that is used to display messages for your custom form. The form creates a window as a child of the Messaging window. CreateReadForm returns handles to the window it has created and a handle to an IMessageFormEx interface. When Messaging calls this method, it passes an IMessageFormHostEx pointer that allows the custom form to communicate with the Messaging application.

Headercemapi.h
Librarycemapi.lib
Windows Embedded CEWindows CE .NET 4.2 and later
Windows MobilePocket PC for Windows Mobile 2003 and later, Smartphone for Windows Mobile 2003 and later

Reference

IFormProviderEx

Other Resources

Messaging

Community Additions

Show: