Compartilhar via


IMailSyncCallBack::DisplayMessageBox

4/8/2010

The DisplayMessageBox method 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 uType parameter 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: OK and Cancel.

MB_RETRYCANCEL

The message box contains two buttons: Retry and Cancel.

MB_YESNO

The message box contains two buttons: Yes and 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

See Also

Reference

IMailSyncCallBack

Other Resources

Messaging