Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Place a div over an activeX object

Tags:

html

activex

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?

like image 567
Barlow Tucker Avatar asked Jun 09 '10 23:06

Barlow Tucker


2 Answers

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

found this example for you

like image 73
Laramie Avatar answered Oct 14 '22 06:10

Laramie


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.

like image 33
Alex Jasmin Avatar answered Oct 14 '22 07:10

Alex Jasmin