本例用一行代码禁用了最大化按钮.

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs;

type
  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
  BorderIcons := BorderIcons - [biMaximize];
end;

end.

posted on 2008-06-21 12:25  万一  阅读(3928)  评论(2编辑  收藏  举报