type
TForm1 = class(TForm)
private
procedure WMSysCommand(var Message: TWMSysCommand); message WM_SYSCOMMAND;
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
{ TForm1 }
procedure TForm1.WMSysCommand(var Message: TWMSysCommand);
begin
inherited;
with Message do
begin
if (CmdType and $FFF0 = SC_MAXIMIZE) then
//执行重绘;
end;