The OWL Class MessageBox

Syntax

int MessageBox(const char far* text,const char far* caption = 0, uint type = MB_OK);

Description

Creates and displays a message box that contains a message (text), a title (caption), and icons or push buttons (type). If caption is 0, the default title is displayed. Although type is set to one push button by default, it can contain a combination of the MB_Xxxx message constants. This function returns one of the following constants: .
Value Description
IDABORTUser selected the abort button.
IDCANCEL User selected the cancel button.
IDIGNORE User selected the ignore button
IDNO User selected the no button.
IDOK User selected the OK button
IDRETRY User selected the retry button.
IDYES User selected the yes button.
If BWCC is already enabled, the message box will be BWCC-enabled. If CTRL 3D is already enabled, the message box will be CTRL-3D-enabled. If neither BWCC nor CTRL 3D is enabled, the message box will be displayed as a standard windows message box.