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