窗口自定义助手
procedure TForm2.DoIdle(Sender: TObject; var Done: Boolean);
begin
Self.Invalidate;
end;
procedure TForm2.FormCreate(Sender: TObject);
begin
Application.OnIdle:= DoIdle;
FCustomizationHelper:= TFormCustomizationHelper.Create(Self);
end;