您的位置:首页 > 其它

不可移动的窗体

2010-03-29 22:51 281 查看
procedure windowsposchange(var Msg:TWMWINDOWPOSCHANGING);message WM_WINDOWPOSCHANGING;

var
Form13: TForm13;
//
oleft:integer;
otop:integer;
owidth:integer;
oHeight:integer;

implementation

{$R *.dfm}

procedure TForm13.FormCreate(Sender: TObject);
begin
oleft:=Left;
otop:=Top;
owidth:=Width;
oheight:=Height;
end;

procedure TForm13.windowsposchange(var Msg:TWMWINDOWPOSCHANGING);
begin
Msg.WindowPos.x:=oleft;
Msg.windowpos.y:=otop;
Msg.windowpos.cx:=owidth;
Msg.windowpos.cy:=oheight;
inherited;
end;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: