开发者

How does Google get a toolbar right below the tabs in IE?

I researched through all BHO related documentation, but I just can't figure how Google gets the translation toolbar right below the tabs in IE.

Any useful pointers how to achieve the same effect for my own toolbar?

alt text htt开发者_StackOverflowp://img35.imageshack.us/img35/8157/googlewp.jpg


Browser helper objects are COM objects that implement IObjectWithSite. During initialisation IObjectWithSite::SetSite is called with a pointer to the Site interface from which the BHO can QI for IWebBrowser2 and from there hook into browser events and manipulate the DOM document. It would be straightforward for Google's BHO to do just that, looking at the url or its content to pose some kind of helper message within the content itself.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜