Super Drag BHO for IE9 (C#)

简介: A nab of mine wants a IE9 BHO with superdrag.   The purpose of writing this article is just for a record.

A nab of mine wants a IE9 BHO with superdrag.

 

The purpose of writing this article is just for a record. Though it is easy, the process of studing on it is not easy, which took me more one night to search related information. Also, the moment when worked it out is delightful.

 

First of all, thanks Tian Fang for his post. (Click here to link to his article)

 

He extended almost all the code for superdrag, the only thing perplexed me is it doesn't work anyway.

I tried to rewrite some code, a different way to get the same result and still can't solve this.

So I have to set some dialog to figure out what is the problem and found that it will fail when goes to

 

var rootElementEvents = document.documentElement as HTMLElementEvents_Event; rootElementEvents.ondragover += () => false; rootElementEvents.ondrop += () => { SuperDragDrop(); return false; };

 

After searching in Google, the reason is the object he used is not correct. We should use HTMLElementEvents2_Event object in this project. Just change it, build and install the BHO.

Have fun!

相关文章
|
7月前
|
前端开发 JavaScript
【HTML+CSS+JavaScript】Animated Navigation
【HTML+CSS+JavaScript】Animated Navigation
30 0
在 fragment 中使用 Toolbar 的 menu
在 fragment 中使用 Toolbar 的 menu
|
前端开发
View#invalidate是如何调用当前View#onDraw方法的?
View#invalidate是如何调用当前View#onDraw方法的?
view.setTag()的正确使用姿势
开发中,我们经常要进行数据的传递,会使用到view.setTag()和view.getTag()方法,主要用在view的点击事件中,可以让数据跟着view走,这种方法很方便。一般情况下给view设置一个tag就够用了,某些情况下我们需要给一个view设置多个tag,在需要的时候再分别取出来,这就需要用到view.setTag()的一个重载方法view.setTag(int key,final Object Tag)了。
|
JavaScript 前端开发
18、DOM对象(window、screen、location、history、navigation)
18、DOM对象(window、screen、location、history、navigation)
156 0
Dialog显示引起的问题 Activity has leaked window DecorView@5704632[] that was originally added here
Dialog显示引起的问题 Activity has leaked window DecorView@5704632[] that was originally added here
1157 0
解决popup不随着window一起移动的问题
原文:解决popup不随着window一起移动的问题 当我们设置Popup的StayOpen="True"时,会发现移动窗体或者改变窗体的Size的时候,Popup并不会跟随着一起移动位置。为了解决这个问题,可以给Popup定义一个附加属性,代码如下所示: /// /// Popup帮助类...
1132 0
|
容器
Scroll-view
Scroll-view一、使用方法 当在容器内放置一个很大的组件时,我们期望容器具有滚动的功能,例如我们在浏览网页的时候,必须滚动才可以看到全部内容。小程序提供了scroll-view组件,可以实现横向、纵向滚动,它的自定义属性如下: 属性名类型默认值说明scroll-xBooleanfalse允.
2224 0
|
前端开发 Java Spring
|
前端开发 Java Spring

热门文章

最新文章