MessageBox()这个API函数很好用的。至于参数吗不会要我全部写出来吧?

解决方案 »

  1.   

    MessageBox();把光标移到MessageBox的字上按F1看看帮助
      

  2.   

    菜鸟问题菜鸟来答:var
      iMrResult:word;
    begin
      iMrResult:=messagedlg('请选择',mtconfirmation,[mbyes,mbno,mbcancel],0);
      if iMrResult = mryes then //选择了yes
      ......
      else if    iMrResult = mrno then//选择了no
      ......
      else //选择了cancel
      ...... 
      

  3.   

    MessageBox(NULL,'内容','标题',MB_YESNOCANCEL OR MB_ICONQUESTION)是 IDYES
    否 IDNO
    取消 IDCANCEL
      

  4.   

    生成一个Form,BorderStyle改为bsDialog,在上面加入三个按钮,分别设定它们的ModalResult为相应的值,如mrOk,即可
    另外,也可以使用MessageDlg,ShowMessage,MessageBox,InputBox,等等