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里面控制edit只能输入数字

dll 的静态调用实例代码

Delphi树的一些操作

Delphi 的内存操作函数(2): 给数组指针分配内存

Delphi 代码查询一个json ip 地址的归属地

Delphi checklistbox 用法

一些不常用的且功能相当有用的Delphi函数

Delphi 数字排序自动完成

Delphi 数组复制利用copymemory 最为完美

Delphi执行查询语句时的进度条怎么做

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



打赏

取消

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

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

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

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

评论

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