質問

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?

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top