Flags for MessageBox()

>Constants for MessageBox()

MessageBox() constants

These constants are flag for the MessageBox() Windows API. This is commonly invoked with $DECLARE.

To check which button was pressed, compare the return value of the MessageBox() call with the Button ID constants.

DEF ENUM enumeration name KCML_MSGBOX_ENUM

Enumeration ValueValueDescription
_MB_OK0x000OK button
_MB_ABORTRETRYIGNORE0x002Abort, Retry and Ignore buttons
_MB_OKCANCEL0x001OK and Cancel buttons
_MB_RETRYCANCEL0x005Retry and Cancel buttons
_MB_YESNO0x004Yes and No buttons
_MB_YESNOCANCEL0x003Yes, No and Cancel buttons
_MB_CANCELTRYCONTINUE0x006Cancel, Try again, Continue buttons
_MB_ICONEXCLAMATION0x030Exclamation icon
_MB_ICONINFORMATION0x040Info icon
_MB_ICONQUESTION0x020Question mark icon
_MB_ICONSTOP0x010Stop! icon
_MB_DEFBUTTON10x000First button is default
_MB_DEFBUTTON20x100Second button is default
_MB_DEFBUTTON30x200Third button is default

Back to the list of Enumerations and Constants