messagebox函数
  messagebox('?????????','??????',MB_OKCANCEL)=MB_OK
  messagebox('?????????','??????',MB_OKCANCEL)=IDOK二者有什么分别?还有里面的参数MB_OKCANCEL还有没有别的形式,都代表什么,谢谢

解决方案 »

  1.   

    應該是用 messagebox('?????????','??????',MB_OKCANCEL)=IDOK 吧
      

  2.   

    windows.MessageBox();   //一個是用windows api生成的
     Application.MessageBox(); //另外一個是delphi vcl實現的IDOK 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.   

    messagebox('?????????','??????',MB_OKCANCEL)=6.
    偶是一般这样用..:)
      

  4.   

    我一般用IDYes、IDNo、IDOK......
    aiirii说得很详细了...
      

  5.   

    MB_OK似指在对话框中县势OK按钮,
    IDOK是指用户按下了按钮虽然他们的值相同而且含义却不同
      

  6.   

    windows.MessageBox();   是WINDOW自带的API,
    Application.MessageBox(); 是DELPHI把API重新封装后的函数
    两个其实功能一样,只不过后者被DELPHI又包装了一下。参数的不同,取决于你用API的,还是DELPHI的了。它们只是常量值,只有DELPHI能认出来就行了
      

  7.   

    MB_OK、IDOK 只是一个常量而已,分别代表不同的整数,所以语法都能通过,但是应该用IDOK
      

  8.   

    messagebox('?????????','??????',4)=6也可以的~