Question

I use a WebBrowser control in a C++ application and would like to retrieve the documentMode property of a loaded document.

The IHTMLDocument2 interface has methods for specific properties (get_domain, get_charset, get_readyState, ...) but none for documentMode.

Is there a generic method to get a property by its name or an other method that I can use to get that property?

Was it helpful?

Solution

QI for IHTMLDocument6, then call IHTMLDocument6::get_documentMode. You can also use late binding (QI for IDispatchEx, then Invoke).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top