比如,我下面代码是点击Button2,然后在Button2实现Button1的点击事件
procedure TForm1.Button1Click(Sender: TObject);
begin
  Edit1.Text := 'wudong';
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
  Button1.OnClick(self); //
end;怎样实现点击Button2,窗体就最小化,不要用sendMessge()..和windstate = csMinine,Application.Minine等。。
我就想模拟用鼠标点击最小化按钮。
谢谢了。。