这个稍好些:<br><br>procedure TForm1.Button2Click(Sender: TObject);<br>var<br> MsgDialog: TForm;<br> pt: TPoint;<br> btns: array[0..2] of TButton;<br> c: integer;<br>begin<br> MsgDialog := CreateMessageDialog('Hi', mtInformation, [mbYes,mbYesToAll, mbNo]);<br> c := MsgDialog.ControlCount;<br><br> btns[0] := TButton(MsgDialog.Controls[c-1]);<br> btns[1] := TButton(MsgDialog.Controls[c-2]);<br> btns[2] := TButton(MsgDialog.Controls[c-3]);<br><br> pt := Point(btns[0].Left,btns[0].Top);<br><br> btns[0].SetBounds(btns[1].Left, btns[1].Top, btns[0].Width,btns[0].Height);<br> btns[1].SetBounds(btns[2].Left, btns[2].Top, btns[1].Width,btns[1].Height);<br> btns[2].SetBounds(pt.X, pt.Y, btns[2].Width, btns[2].Height);<br> btns[0].Caption := '我是第一个';<br> btns[1].Caption := '我是第二个';<br> btns[2].Caption := '我是第三个';<br> MsgDialog.ShowModal;<br>end;