Delphi Base

WindSon

导航

Delphi 非主窗体(即子窗体)在任务栏显示按钮

type
  TForm2 = class(TForm)
  private
    { Private declarations }
  public
    { Public declarations }
    procedure CreateParams(var Params:TCreateParams);
override; //添加过程
  end;

procedure TForm2.CreateParams(var Params: TCreateParams);
begin
  inherited CreateParams(Params);
  Params.WndParent := GetDesktopWindow;
end;

 

posted on 2020-03-25 21:17  windsonvip  阅读(282)  评论(0编辑  收藏  举报