开发者

How to set Content-Type of a Webbrowser Control?

开发者 https://www.devze.com 2022-12-25 06:57 出处:网络
Is it possible to set the Content-Type of a document in a webbrowser control? For example how can I show an XML document ren开发者_JAVA技巧dered as XML in a webbrowser control by using DocumentText?T

Is it possible to set the Content-Type of a document in a webbrowser control?

For example how can I show an XML document ren开发者_JAVA技巧dered as XML in a webbrowser control by using DocumentText?


Try add an extension to your IMoniker::GetDisplayName implementation. This will cause the URL moniker to look under HKEY_CLASSES_ROOT.??? keys for mime types. Then you can use the webbrowser's documen's IPersistMoniker interface to load the moniker.

0

精彩评论

暂无评论...
验证码 换一张
取 消