如:
  系统显示'你要退出系统吗?',有两个按钮'是','否',如果使默认是[否]这个按钮。
  系统帮助中,好像VCL的messagebox()不可以,但是CLX可以的。但是我不会。 

解决方案 »

  1.   

    messagebox(0,'aaaaaaaa','bbbbbbb',MB_YESNO or MB_DEFBUTTON2);
      

  2.   

    或者
    Application.messagebox('aaaaaaaa','bbbbbbb',MB_YESNO or MB_DEFBUTTON2);
      

  3.   

    MessageBox('問題搞定','提示',MB_OKNO+MB_ICONINFORMATION+defbutton2);
    有最后一个参数就可以了。defbutton2是指第二个按钮
      

  4.   

    MB_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.
    怎么就不去查查delphi的帮助?上面就是从帮助里搞来的,说得非常的清楚了。delphi帮助才是最具体的!