Programmer's Guide > Interfaces > Application interface > MessageBoxFlags enumeration
  
MessageBoxFlags enumeration
The MessageBoxFlags enumerated type is used to construct the flags parameter to the messageBox method by ORing any of the following options:
The MessageBoxFlags enumeration has the following constants of type int.
MBF_OK = 0x00
Display OK button only. This is the default.
MBF_OKCANCEL = 0x01
Display OK and Cancel buttons.
MBF_ABORTRETRYIGNORE = 0x02
Display Abort, Retry, and Ignore buttons.
MBF_YESNOCANCEL = 0x03
Display Yes, No, and Cancel buttons.
MBF_YESNO = 0x04
Display Yes and No buttons.
MBF_RETRYCANCEL = 0x05
Display Retry and Cancel buttons.
MBF_ICONERROR = 0x10
Display the Error (Stop) icon. This icon is typically used with the Abort, Retry, and Ignore buttons.
MBF_ICONQUESTION = 0x20
Display the Question icon. This icon is typically used with the Yes and No buttons.
MBF_ICONWARNING = 0x30
Display the Warning icon.
MBF_ICONINFORMATION = 0x40
Display the Information icon.
MBF_DEFBUTTON1 = 0x000
The first button is the default. This is the default if no other default button flag is specified.
MBF_DEFBUTTON2 = 0x100
The second button is the default.
MBF_DEFBUTTON3 = 0x200
The third button is the default.