如何控制 IE 插件 (BHO) 中的工具栏位置

发布于 2024-07-08 15:12:32 字数 503 浏览 8 评论 0 原文

我正在尝试使用“浏览器帮助程序对象”(BHO)。 目标是拥有一个标准的 IE 工具栏,其中包含一些按钮和一个自定义控件。 我想在 .NET 中开发它,

我从此处的基线示例开始。 这工作正常,但是...

  • 如何控制工具栏在浏览器中的显示位置? 目前它仅显示在菜单行上。
  • 如何让用户像其他工具栏一样移动它。 大多数其他工具栏(内置和插件)都有一个虚线分隔符,您可以在其中抓取和移动它们。

如果有更好的方法来开发它(例如 FireFox JS 插件),我也想知道。

I'm trying to develop an Internet Explorer 7 addon using "Browser Helper Objects" (BHO). The goal is to have a standard IE toolbar with some buttons and one custom control. I would like to develop it in .NET

I started from the baseline sample here. This works fine but...

  • How to control where in the browser the toolbar will show? Currently it just shows on the menu line.
  • How to let the user move it like other toolbars. Most other toolbars (built in and addons) have a dashed separator where you can grab and move them.

If there is a better way altogether to develop this (like the FireFox JS addons) I would like to know about it too.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑看君怀她人 2024-07-15 15:12:32

如果您使用您提供的链接中的基线工具栏,您可能会找到这篇文章 有用。 它解决了原始文章中工具栏实现的一些缺点,包括如何移动工具栏(查看文章底部)。

而且,据我所知,没有更好的方法在 C#/.NET 中创建 IE 插件,尽管我希望有。

If you are using the baseline toolbar from the link you provided, you may find this article useful. It addresses some of the shortcomings of the toolbar implementation in the original article, including how to move the toolbar (look toward the bottom of the article).

And, as far as I know there isn't a better way to to create a IE add-on in C#/.NET, although I wish there was.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文