瑞文文摘
返回首页 | 手机用户请点此访问手机版
关键字:delphi源码,抓取并显示程序中的鼠标 | 时间:2012/9/18

【delphi源码】抓取并显示程序中的鼠标

unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TfrmMain = class(TForm)
procedure FormClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmMain: TfrmMain;
implementation
{$R *.dfm}
procedure TfrmMain.FormClick(Sender: TObject);
var
ico:TIcon;
point:TPoint;
begin
GetCursorPos(point);
point:=ScreenToClient(point);
ico:=TIcon.Create;
ico.Handle:=GetCursor();
Canvas.Draw(point.X,point.Y,ico);
ico.Free;
end;
end.




上一篇:【delphi源码】实现RichEdit中的整行选中

下一篇:【delphi源码】设置桌面图标的前景色和背景色

Copyright © 瑞文软件工作室 冀ICP备17033643号 联系我们