这是拦截FLASH上右键的程序:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
OleCtrls, ShockwaveFlashObjects_TLB, StdCtrls, ExtCtrls, jpeg;
type
TForm1 = class(TForm)
flash: TShockwaveFlash;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
procedure mymessage(var Msg: TMsg; var Handled: Boolean);
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure tform1.mymessage(var Msg: TMsg; var Handled: Boolean);
begin
if (msg.message=WM_rbuttondown) and (msg.hwnd=flash.handle) then
begin
handled:=true;
end;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
application.onmessage:=mymessage;
end;
end.