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?
You'll want to place a transparent iframe over the object you want to cover up.
found this example for you
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With