MessageBox( )创建信息窗口【常规函数篇-MQL4函数】
int MessageBox( void text, void caption, void flags)在信息箱内可以创建,展示和控制信息箱。信息箱包含信息和题头。如果函数成功运行,MessageBox函数 返回代码值为其中值之一。
此函数从客户端的工作页面不能调用执行。
参数:
text - 窗口显示的文字。
caption - 窗口上显示的标题。如果参量为 NULL, 智能交易名称将被隐藏。
flags - 窗口选项开关。选项 开关存在组。
示例:
#include <WinUser32.mqh>
if(ObjectCreate("text_object", OBJ_TEXT, 0, D'2004.02.20 12:30', 1.0045)==false)
{
int ret=MessageBox(" ObjectCreate() function returned the "+GetLastError()+" error\nContinue?", "Question", MB_YESNO|MB_ICONQUESTION);
if(ret==IDNO) return(false);
}
// 继续
:loveliness:
页:
[1]