To generate an enhanced message box, an application calls WinMessageBox2. An enhanced message box has all the functionality of the standard message box, with the addition of the following:
In creating enhanced message boxes, the MB2INFO button information block structure is used to specify button style flags as shown in the following table:
┌────────────────────┬────────────────────────────────────────┐│Style Name │Description │ ├────────────────────┼────────────────────────────────────────┤ │MB_APPLMODAL │Message box is application modal. This │ │ │is the default case. │ ├────────────────────┼────────────────────────────────────────┤ │MB_CUSTOMICON │A user-specified value. │ ├────────────────────┼────────────────────────────────────────┤ │MB_ERROR │Message box contains a small red circle │ │ │with a red line across it. │ ├────────────────────┼────────────────────────────────────────┤ │MB_ICONASTERISK │Message box contains an information (i) │ │ │icon. │ ├────────────────────┼────────────────────────────────────────┤ │MB_ICONEXCLAMATION │Message box contains an exclamation │ │ │point (!) icon. │ ├────────────────────┼────────────────────────────────────────┤ │MB_ICONHAND │Message box contains a small red circle │ │ │with a red line across it. │ ├────────────────────┼────────────────────────────────────────┤ │MB_ICONQUESTION │Message box contains a question mark (?)│ │ │icon. │ ├────────────────────┼────────────────────────────────────────┤ │MB_INFORMATION │Message box contains an information (i) │ │ │icon. │ ├────────────────────┼────────────────────────────────────────┤ │MB_MOVEABLE │Message box is moveable. A title bar │ │ │and system menu with Move, Close and │ │ │Task Manager choices are displayed. │ ├────────────────────┼────────────────────────────────────────┤ │MB_NOICON │Message box is not to contain an icon. │ ├────────────────────┼────────────────────────────────────────┤ │MB_NONMODAL │Message box is modeless (the program │ │ │continues after displaying the message │ │ │box). │ ├────────────────────┼────────────────────────────────────────┤ │MB_QUERY │Message box contains a question mark (?)│ │ │icon. │ ├────────────────────┼────────────────────────────────────────┤ │MB_SYSTEMMODAL │Message box is system modal. │ ├────────────────────┼────────────────────────────────────────┤ │MB_WARNING │Message box contains an exclamation │ │ │point (!) icon. │ └────────────────────┴────────────────────────────────────────┘