MessageBox(0, '命令已发出!', '提示', MB_ICONINFORMATION or MB_OK);
是当什么什么的时候,会有什么结果。
初学MessageBox都不是很懂,郁闷

解决方案 »

  1.   

    好象写到代码内就可以显示了
    我也是新手
    学习ing
      

  2.   

    function MessageBox(const Text, Caption: PChar; Flags: Longint = MB_OK): Integer;
    DescriptionUse MessageBox to display a generic dialog box a message and one or more buttons. Caption is the caption of the dialog box and is optional.MessageBox is an encapsulation of the Windows API MessageBox function. TApplication’s encapsulation of MessageBox automatically supplies the missing window handle parameter needed for the Windows API function.The value of the Text parameter is the message, which can be longer than 255 characters if necessary. Long messages are automatically wrapped in the message box. The value of the Caption parameter is the caption that appears in the title bar of the dialog box. Captions can be longer than 255 characters, but don't wrap. A long caption results in a wide message box.The Flags parameter specifies what buttons appear on the message box and the behavior (possible return values). The following table lists the possible values. These values can be combined to obtain the desired effect.Value MeaningMB_ABORTRETRYIGNORE The message box contains three push buttons: Abort, Retry, and Ignore.
    MB_OK The message box contains one push button: OK. This is the default.
    MB_OKCANCEL The message box contains two push buttons: OK and Cancel.
    MB_RETRYCANCEL The message box contains two push buttons: Retry and Cancel.
    MB_YESNO The message box contains two push buttons: Yes and No.
    MB_YESNOCANCEL The message box contains three push buttons: Yes, No, and Cancel.MessageBox returns 0 if there isn’t enough memory to create the message box. Otherwise it returns one of the following values:Value Numeric value MeaningIDOK 1 The user chose the OK button.
    IDCANCEL 2 The user chose the Cancel button.
    IDABORT 3 The user chose the Abort button.
    IDRETRY 4 The user chose the Retry button.
    IDIGNORE 5 The user chose the Ignore button.
    IDYES 6 The user chose the Yes button.
    IDNO 7 The user chose the No button.
      

  3.   

    是当你需要判断是否命令已发出的时候要写的语句
     if MessageBox(0, '命令已发出!', '提示', MB_ICONINFORMATION or MB_OK);
      

  4.   

    不好意思
    刚才机子出了毛病
    if MessageBox( '命令已发出!', '提示', MB_ICONINFORMATION or MB_OK+MB_CANCEL)=MB_OK then
    begin
      showmessage('命令已发出!');
    end;
    MB_ICONINFORMATION代表提示符号
    MB_OK+MB_CANCEL确定或取消
      

  5.   

    在你需要做提示的时候,写上这个代码!!if pass then
      MessageBox(0, '命令已发出!', '提示', MB_ICONINFORMATION or MB_OK);