delphi 不可移动的窗体


本文整理自网络,侵删。

  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;

相关阅读 >>

Delphi 编写网址加密解密代码

Delphi xp 之后, Delphi 动注册表不方便了...逼出来一个办法:

Delphi 获取系统日期时间

Delphi fmx检查应用程序状态更改

Delphi xp下的进程静音技术

Delphi的组件选项卡(component palette)

Delphi的对象注销方法destroy和free的区别

Delphi win32_diskdrive 硬盘 参数说明

Delphi程序禁止结束进程

如何用Delphi实现windows xp中“本地连接”的启用和禁用

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...