瑞文文摘

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



标签: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源码】设置桌面图标的前景色和背景色



瑞文软件工作室 版权所有 [冀ICP备17033643号]
[联系我们][访问电脑版]