unit unit1;
interface
uses
windows messages sysutils classes graphics controls forms
dialogs
stdctrls;
type
tform1 = class(tform)
label1: tlabel;
label2: tlabel;
label3: tlabel;
label4: tlabel;
label5: tlabel;
procedure formcreate(sender: tobject);
private
{ private declarations }
oldleft oldtop oldwidth oldheight: integer;
public
{ public declarations }
protected
procedure wmmoving(var msg: tmessage);message wm_moving;
end;
var
form1: tform1;
implementation
{$r *.dfm}
procedure tform1.wmmoving(var msg: tmessage);
var
rect: ^trect;
begin
label1.caption := inttostr(msg.wparam);
rect := pointer(msg.lparam);
label2.caption := inttostr(rect.left);
label3.caption := inttostr(rect.top);
label4.caption := inttostr(rect.right);
label5.caption := inttostr(rect.bottom);
rect.left := oldleft;
rect.top := oldtop;
rect.right := rect.left + oldwidth;
rect.bottom := rect.top + oldheight;
msg.result := 0;
end;
procedure tform1.formcreate(sender: tobject);
begin
oldleft := left;
oldtop := top;
oldwidth := width;
oldheight := height;
end;
end.,
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器