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帮助才是最具体的!
Application.messagebox('aaaaaaaa','bbbbbbb',MB_YESNO or MB_DEFBUTTON2);
有最后一个参数就可以了。defbutton2是指第二个按钮
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帮助才是最具体的!