是否可以在IE浏览器上添加新的功能按钮?

wenfeng 2000-07-04 03:53:00
...全文
195 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wenfeng 2000-07-05
  • 打赏
  • 举报
回复
谢谢各位的帮助!
jiangtao 2000-07-04
  • 打赏
  • 举报
回复
这里有全部技术资料:
http://msdn.microsoft.com/workshop/browser/ext/overview/overview.asp
linyu 2000-07-04
  • 打赏
  • 举报
回复
不错,找了很久。
还有一个问题,就是编一个程序加一个类似于IE历史、搜索的按钮,能够实现在页面左边出现一个窗体的功能。
jiangtao 2000-07-04
  • 打赏
  • 举报
回复
使用COM编程可以实现,
可以用VB,VC,Delphi,不过不能用ASP
MSDN上有说明:
http://msdn.microsoft.com/workshop/browser/ext/overview/toolbar_style.asp

这是Delphi的代码:
function AddToolbarBtn(Visible: Boolean; ConnType: TConnType; BtnText, HotIcon, Icon, GuidOrPath: string): string;
var
G: TGUID;
Reg: TRegistry;
UID: string;
begin
CoCreateGuid(G);
UID := GuidToString(G);
Reg := TRegistry.Create;
with Reg do try
RootKey := HKEY_LOCAL_MACHINE;
OpenKey('\Software\Microsoft\Internet Explorer\Extensions\' + UID, True);
if Visible then
WriteString('Default Visible', 'Yes') else
WriteString('Default Visible', 'No');
WriteString('ButtonText', BtnText);
WriteString('HotIcon', HotIcon);
WriteString('Icon', Icon);
case ConnType of
COM_OBJECT: begin
WriteString('CLSID', '{1FBA04EE-3024-11d2-8F1F-0000F87ABD16}');
WriteString('ClsidExtension', GuidOrPath);
end;
EXPLORER_BAR:
begin
WriteString('CLSID', '{E0DD6CAB-2D10-11D2-8F1A-0000F87ABD16}');
WriteString('BandCLSID', GuidOrPath);
end;
SCRIPT:
begin
writeString('CLSID', '{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}');
WriteString('Script', GuidOrPath);
end;
EXECUTABLE:
begin
WriteString('CLSID', '{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}');
WriteString('Exec', GuidOrPath);
end;
end;
CloseKey;
OpenKey('\Software\IE5Tools\ToolBar Buttons\', True);
WriteString(BtnText, UID);
CloseKey;
finally
Free;
end;
Result := UID;
end;

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧