DELPHI 禁止窗体移动

  private
    procedure WMSYSCOMMAND(var msg:TMessage);message WM_SYSCOMMAND;
    { Private declarations }
  public
    { Public declarations }
  end;



//禁止窗体移动
procedure TSysTemCenter.WMSYSCOMMAND(var msg: TMessage);
begin 
  if msg.WParam=SC_MOVE then msg.WParam:=0;
end;

 

posted @ 2012-02-27 15:12  aBung  阅读(3155)  评论(0编辑  收藏  举报