禁止TWebbrowser拖入图片或文件打开 使用Twebbrowser内嵌到程序中,在使用中发现,拖入一个图片到里面,图片会自动打开在WEBbrowser里拖入一个其他浏览器打不开的文件,就会打开一个下载对话框现在想禁止这种拖拽,求方法谢谢,在线等 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 做了一个小试验,还行unit Unit1;interfaceuses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.OleCtrls, SHDocVw;type TForm1 = class(TForm) WebBrowser1: TWebBrowser; procedure FormCreate(Sender: TObject); private { Private declarations } public procedure AppMsg(var Msg: TMsg; var Handled: Boolean); end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);begin WebBrowser1.Navigate('about:blank'); Application.OnMessage := AppMsg;end;procedure TForm1.AppMsg(var Msg: TMsg; var Handled: Boolean);begin if Msg.hwnd = WebBrowser1.Handle then if (Msg.message = WM_USER + 768) or (Msg.message = WM_USER + 780) then Msg.message := 0;end;end. SOAP,IIS服务 急求d6 rtl1和rtl2升级包!!! 快捷键控制 二个简单问题:DateTimeToStr()和TStringList的 超简单问题(在线等)! 界面设计 数据修改问题??急用?? 送分了,请问哪里有ADO2。1或以上版本下载? 东打一枪,西放一炮的家伙... 谁能发一个‘dsgnintf.pas'文件给我,并告诉我这个文件用途?谢谢 fastreport求助,分组横向显示 多线程连接数据库问题。
unit Unit1;interfaceuses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.OleCtrls, SHDocVw;type
TForm1 = class(TForm)
WebBrowser1: TWebBrowser;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
procedure AppMsg(var Msg: TMsg; var Handled: Boolean);
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
begin
WebBrowser1.Navigate('about:blank');
Application.OnMessage := AppMsg;
end;procedure TForm1.AppMsg(var Msg: TMsg; var Handled: Boolean);
begin
if Msg.hwnd = WebBrowser1.Handle then
if (Msg.message = WM_USER + 768) or (Msg.message = WM_USER + 780) then
Msg.message := 0;
end;
end.