MQL4参考 普通函数 MessageBox

MessageBox

It creates and shows a message box and manages it. A message box contains a message and header, any combination of predefined signs and command buttons.

int  MessageBox(
   string  text,             // message text
   string  caption=NULL,     // box header
   int     flags=0           // defines set of buttons in the box
   );

Parameters

text

[in]  Text, containing message to output.

caption=NULL

[in]  Optional text to be displayed in the box header. If the parameter is empty, Expert Advisor name is shown in the box header.

flags=0

[in]  Optional flags defining appearance and behavior of a message box. Flags can be a combination of a special group of flags.

Return Value

If the function is successfully performed, the returned value is one of values of MessageBox() return codes.

Note

The function can't be called from custom indicators, because indicators are executed in the interface thread and shouldn't slow it down.

MessageBox() function does not work in the Strategy Tester.