Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/14/2010

The message box displays notifications and prompts the user for input. You create a message box by using the Windows Embedded CE MessageBoxfunction.

The message box on Windows Mobile Standard expands to full screen with the input options located on the soft key bar.

Note that beginning with Windows Mobile 6.5.3, soft keys are replaced by touchable tiles on Windows Mobile Professional phones.

Windows Mobile Standard supports only the uTypeparameter values for the input options described in the following table.

uTypeparameter value Description

MB_OK

Default OKinput option.

MB_OKCANCEL

OKand Cancelinput options.

MB_RETRYCANCEL

Retryand Cancelinput options.

MB_YESNO

Yesand Noinput options.

When the hWndparameter value is NULL, the message box uses the Home screen as the parent window. When the user presses the Home key, the message box is hidden briefly (approximately one minute).

When the user presses the Back key, the message box closes and the MessageBoxfunction returns one of the following values:

For more information about the Back key, see Navigation Keys.

See Also