不要标题栏或者
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
protected
procedure onposchange(var msg:twmwindowposchanging);
message wm_windowposchanging;
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure tform1.onposchange(var msg:twmwindowposchanging);
begin
msg.windowpos.x:=left;
msg.WindowPos.y:=top;
msg.result:=0;
end;
end.