int MessageBox (string text=NULL, string caption=NULL, int flags=EMPTY)
The MessageBox function creates, displays, and operates message box. The message box contains an application-defined message and header, as well as a random combination of predefined icons and push buttons. If the function succeeds, the returned value is one of the MessageBox
return code values.
MessageBox 関数は、メッセージ ボックスの作成、表示、処理をします。メッセージ ボックスには、定義済みのアイコンとプッシュ ボタンのランダムな組み合わせと、アプリケーションによって定義されたメッセージとヘッダーを含みます。もし、関数が正常終了した場合は、返される値はいずれかの MessageBox リターン コード 値です。
The function cannot be called from custom indicators since they are
executed within interface thread and may not decelerate it.
この関数は、インターフェース スレッド内で実行 され、減速してはならないので、カスタム インディケータから呼び出すことはできません。
Parameters:
パラメータ:
text – Optional text that contains the message to be displayed.
メッセージに表示される内容を含む省略可能なテキストです。
caption – Optional text to be displayed in the header of the dialog box. If this parameter is NULL, the expert name will be displayed in the header.
ダイアログ ボックスのヘッダーに表示する省略可能なテキスト。もし、パラメータが NULL の場合は、エキスパート名がヘッダーに表示されます。
flags – Optional flags that determine the type and behavior of the dialog box. They can represent a conbination of
flags from the following groups.
ダイアログ ボックスの種類と動作を決定する省略可能なフラグ。これらは、フラグ のグループからの組み合わせで表すことができます。
Sample:
サンプル:
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 ) ;
}
// continue
0 people found this article useful This article was helpful
This article was helpful
0 people found this article useful