Frage

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?

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top