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. |
The DisplayMessageBoxmethod requests the Messaging application to display a message box.
Syntax
UINT DisplayMessageBox ( LPCWSTR pszProfile, LPCWSTR pszTitle, LPCWSTR pszMessage, UINT uType ); |
Parameters
- pszProfile
-
[in] Reference to the name of the account or service associated with the message box. Messaging ignores this parameter.
- pszTitle
-
[in] Reference to the string representing the message box' title.
- pszMessage
-
[in] Reference to the message in the message box.
- uType
-
[in] A bitmask that specifies the buttons to use in the dialog box. This bitmask is composed of a combination of zero or more message box flags, combined with the bitwise OR( |). For a list of possible flags you can combine, see the table below.
Return Value
An unsigned integer that indicates which button the user clicked.
Remarks
The uTypeparameter is composed of zero or more of the following flags, combined using the bitwise OR.
Flag | Description |
---|---|
MB_ABORTRETRYIGNORE |
The message box contains three buttons: Abort, Retry, and Ignore. |
MB_OK |
The message box contains the default button: OK. |
MB_OKCANCEL |
The message box contains two buttons: OKand Cancel. |
MB_RETRYCANCEL |
The message box contains two buttons: Retryand Cancel. |
MB_YESNO |
The message box contains two buttons: Yesand No. |
MB_YESNOCANCEL |
The message box contains three buttons: Yes, No, and Cancel. |
Requirements
Header | cemapi.h |
Library | cemapi.lib |
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Pocket PC 2002 and later, Smartphone 2002 and later |