Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
TForm1 = class(TForm)
private
{ Private declarations }
protected
procedure createparams(var params : TCreateParams);override;
public
{ Public declarations }
end;
Form1: TForm1;
begin
inherited;
{实现窗体最大化}
params.Style:= params.Style or WS_MAXIMIZE;
end;
begin
inherited;
params.Style:= params.Style and (not WS_CAPTION);
begin
inherited;
params.Style:= params.Style and (not WS_THICKFRAME);
begin
inherited;
params.ExStyle:= params.ExStyle or (WS_EX_CLIENTEDGE);