3个回答
2014-01-15
展开全部
以前用Memu做过一个仿制的。
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls;
type
TForm1 = class(TForm)
Image1: TImage;
procedure FormCreate(Sender: TObject);
procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Image1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses Unit2;
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
var
tep:integer;
begin
tep:=0;
systemparametersinfo(spi_setfasttaskswitch,1,@tep,0);
systemparametersinfo(spi_screensaverrunning,1,@tep,0);//屏蔽Ctrl+F4&Ctrl+Alt+del
end;
procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
if Y>screen.Height-30 then
begin
form2.left:=0;
form2.top:=screen.Height-30;
form2.width:=screen.Width;
form2.height:=30;
form2.show;
end
else
form2.hide;
end;
procedure TForm1.Image1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
if Y>screen.Height-30 then
begin
form2.left:=0;
form2.top:=screen.Height-30;
form2.width:=screen.Width;
form2.height:=30;
form2.show;
end
else
form2.hide;
end;
end.
form2的源代码不给出了,调整一个合适的大小就可以了。form1.Align设置为alClient.
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls;
type
TForm1 = class(TForm)
Image1: TImage;
procedure FormCreate(Sender: TObject);
procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Image1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses Unit2;
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
var
tep:integer;
begin
tep:=0;
systemparametersinfo(spi_setfasttaskswitch,1,@tep,0);
systemparametersinfo(spi_screensaverrunning,1,@tep,0);//屏蔽Ctrl+F4&Ctrl+Alt+del
end;
procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
if Y>screen.Height-30 then
begin
form2.left:=0;
form2.top:=screen.Height-30;
form2.width:=screen.Width;
form2.height:=30;
form2.show;
end
else
form2.hide;
end;
procedure TForm1.Image1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
if Y>screen.Height-30 then
begin
form2.left:=0;
form2.top:=screen.Height-30;
form2.width:=screen.Width;
form2.height:=30;
form2.show;
end
else
form2.hide;
end;
end.
form2的源代码不给出了,调整一个合适的大小就可以了。form1.Align设置为alClient.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询