1).
    Messagebox(0,'你单击了No按钮','结果',MB_OK);
     其中:
       0 是代表什么,是什么意思啊。
  2).ShowMessage('请选择',Mtcustom,[mbok],0)
     这里的0又代表什么啊。它与上面的又有什么区别呢?

解决方案 »

  1.   

    看MSDN去
    有参数说明的1)是The MessageBox function creates, displays, and operates a message box. The message box contains an application-defined message and title, plus any combination of predefined icons and push buttons. int MessageBox(    HWND hWnd, // handle of owner window
        LPCTSTR lpText, // address of text in message box
        LPCTSTR lpCaption, // address of title of message box  
        UINT uType  // style of message box
       );
     ParametershWndIdentifies the owner window of the message box to be created. If this parameter is NULL, the message box has no owner window. 2)Displays a message box with an OK button.UnitDialogsor QDialogsCategorydialog and message routinesDelphi syntax:procedure ShowMessage(const Msg: string);
    procedure ShowMessage(const Msg: WideString); overload;
    procedure ShowMessage(const Msg: WideString; Params: array of const); overload;C++ syntax:extern PACKAGE void __fastcall ShowMessage(const AnsiString Msg);
    extern PACKAGE void __fastcall ShowMessage(const WideString Msg);
    extern PACKAGE void __fastcall ShowMessage(const WideString Msg, const System::TVarRec * Params, const int Params_Size);DescriptionCall ShowMessage to display a simple message box with an OK button. The name of the application's executable file appears as the caption of the message box. Msg parameter is the message string that appears in the message box. Params lists the values to insert into Msg if the Msg string includes formatting specifiers. For more information about how messages are formatted, see Format Strings.Params_size is the index of the last value in Params (one less than the number of elements).Note: To display a message in a message box with other buttons, or with an icon, use the MessageDlg function.
    Note: If the user types Ctrl+C in the message box, the text of the message is copied to the clipboard.