次の方法で共有


Message Boxes

Send Feedback

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

The message box on the Windows Mobile-based Smartphone expands to full screen with the input options located on the soft key bar. The Windows Mobile-based Smartphone supports only the uType parameter values for the input options described in the following table.

uType parameter value Description
MB_OK Default OK input option.
MB_OKCANCEL OK and Cancel input options.
MB_RETRYCANCEL Retry and Cancel input options.
MB_YESNO Yes and No input options.

When the hWnd parameter 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 MessageBox function returns one of the following values:

  • OK if the soft key bar contains only a single soft key.
  • No or Cancel if the soft key bar contains two soft keys.

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

See Also

Developing User Interface Components | Navigation Keys

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.