Making it work with MFC might be a bit tedious task. You would need to create a custom implementation of COleControlSite
and COccManager
for your CHtmlView
. On the COleControlSite
object, you'd need to implement IServiceProvider
and IInternetSecurityManager
. With IInternetSecurityManager::ProcessUrlAction
you'd control how ActiveX controls are handled.
Here you can find some implementations of the above:
http://www.codeproject.com/Articles/4805/Advanced-customization-of-WebBrowser-Control-in-Di
http://www.codeproject.com/Articles/924/DHTML-User-Interface-Library