The OutStyle enumeration values specifies the
look and feel for your message box. Use the
Out
method to invoke a message box with a specified style. The first group of
values (0–5) describes the number and type of buttons displayed in the
message box; the second group (16, 32, 48, 64) describes the icon style; the
third group (256, 512) determines which button is the default; the fourth
group (4096) determines the modality of the message box, and the fifth group
specifies whether or not the message box window is the foreground window,
along with the alignment and direction of the text.
| | Name | Value | Description | |
| |
exOKOnly | 0
|
Displays OK button only.
| |
| |
exOKCancel | 1
|
Displays OK and Cancel buttons.
| |
| |
exAbortRetryIgnore | 2
|
Displays Abort, Retry, and Ignore buttons.
| |
| |
exYesNoCancel | 3
|
Displays Yes, No, and Cancel buttons.
| |
| |
exYesNo | 4
|
Displays Yes and No buttons.
| |
| |
exRetryCancel | 5
|
Displays Retry and Cancel buttons.
| |
| |
exCritical | 16
|
Displays Critical Message icon.
| |
| |
exQuestion | 32
|
Displays Warning Query icon.
| |
| |
exExclamation | 48
|
Displays Warning Message icon.
| |
| |
exInformation | 64
|
Displays Information Message icon.
| |
| |
exDefaultButton2 | 256
|
Second button is default.
| |
| |
exDefaultButton3 | 512
|
Third button is default.
| |
| |
exSystemModal | 4096
|
System is modal. All applications are suspended until the user responds to the message box.
| |
| |
exMsgBoxSetForeground | 65536
|
Specifies the message box window as the foreground window.
| |
| |
exMsgBoxRight | 524288
|
Text is right-aligned.
| |
| |
exMsgBoxRtlReading | 1048576
|
Specifies text should appear as right-to-left reading on Hebrew and Arabic systems.
| |