Share via


IMailSyncCallBack::DisplayMessageBox

Send Feedback

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 Values

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

Pocket PC: Pocket PC 2002 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: cemapi.h
Library: cemapi.lib

See Also

IMailSyncCallBack | Messaging

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.