We’re developing an ActiveX that runs on IE11.
When running IE11 On Windows 10 with IE’s “protected mode” enabled, a child window cannot be set as “always on top”. Our code that sets “always on top” for the child window looks like this: ::SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); This commands fails with error-code 5 (ERROR_ACCESS_DENIED)
I should note the following:
This happens even when the website is included in the “trusted sites”
This code works perfectly on Windows versions < 10 (with IE's "protected mode" enabled)
The main IE11 window can be set to “always on top”, but the child window cannot
- We've tried to change the settings under Internet Options -> Security -> Custom level..., but nothing helps
Two solutions that are not acceptable by our customer are:
- Run IE11 elevated (i.e. as Administrator)
- Disable IE's "protected mode" (Internet Options -> Security -> “Enable protected mode”)
Would like to hear if anyone encountered it, or managed to solve it.