Place a div over an activeX object

徘徊边缘 提交于 2019-12-22 04:49:18

问题


I have a div box that needs to pop up over an ActiveX object, but it seems that an ActiveX object has an infinitely high z-index, even if when I set that index to be low. My div box continues to show up under the ActiveX object. Any ideas?


回答1:


You'll want to place a transparent iframe over the object you want to cover up.

found this example for you




回答2:


An advantage of Windowless ActiveX controls is that they participate in overlapping 2-D layout

Though modifying the control to make it windowless may not be practical.

Edit:

I've found a sample that demonstrate this using the flash player ActiveX control. Flash can be used in both windowed and windowless modes. That sample makes it easy to switch between these and see how an overlapping div appears in each mode.

Windowless controls are implemented in a way that don't require them to have their own window. That means no WindowProc and no dedicated drawing surface.

Instead you receive messages by implementing IOleInPlaceObjectWindowless and can get the GDI drawing context through IOleInPlaceSiteWindowless.



来源:https://stackoverflow.com/questions/3010699/place-a-div-over-an-activex-object

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!