本文整理自网络,侵删。
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 xp 之后, Delphi 动注册表不方便了...逼出来一个办法:
Delphi的组件选项卡(component palette)
Delphi win32_diskdrive 硬盘 参数说明
如何用Delphi实现windows xp中“本地连接”的启用和禁用
更多相关阅读请进入《Delphi》频道 >>