错在哪里?
MessageDlg('程序名','消息',mtConfirmation,[mbYes,mbNo,mbCancel],0,mbYes);

解决方案 »

  1.   

    MessageDlg('程序名','消息',mtConfirmation,[mbYes,mbNo,mbCancel],0);
      

  2.   

    ssageDlg(Msg, mtInformation, [mbOk], 0)
      

  3.   

    MessageDlg('程序名',mtConfirmation,[mbYes,mbNo,mbCancel],0);
      

  4.   

    回复人: code8110(业余选手)
    MessageDlg('程序名',mtConfirmation,[mbYes,mbNo,mbCancel],0);这样,当然可以,但是,这样的话,MessageDlg的标题就无法设置了 
    结果是标题为confirm,而我的目标是:标题为‘程序名‘,显示的消息为'消息'
      

  5.   

    MessageDlg只有4个参数,(‘ 消息内容’,消息框类型,[消息框上的按钮],helectx);
    你要设置标题,另想办法吧。
      

  6.   

    不要用messagedlg了,用:
     application.MessageBox('你好吗?‘,'提示 ',MB_ICONQUESTION);
      

  7.   

    MessageBox(handle,'信息','caption',mb_ok or MB_ICONERROR)可以再加上其他按钮看行不行
      

  8.   

    MessageBox(handle,'信息','caption',mb_ok or MB_ICONERROR)可以再加上其他按钮看行不行
      

  9.   

    function MessageDlg(const Msg: string; DlgType: TMsgDlgType;
      Buttons: TMsgDlgButtons; HelpCtx: Longint): Integer;
    begin
      Result := MessageDlgPosHelp(Msg, DlgType, Buttons, HelpCtx, -1, -1, '');
    end;用MessageDlg是没有办法改标题的!用MessageBox吧!
    MessageBox(hwnd:HWND;IpText:Pchar;IpCaption:Pchar;UType:Cardinal);if Messagebox(0, '消息', '标题', MB_YesNo + MB_ICONQUESTION) = IDYES then或if Application.MessageBox('消息','标题 ',MB_YesNo + MB_ICONQUESTION)= IDYES then