1

I want to display a simple web page in my Win32 application.

I have read this question

IWebBrowser2: how to force links to open in new window?

I want to do exactly stated in the reply of the question, but havn't found a code example.

Is there a simple example which shows how to use IHTMLDocument instead of IWebBrowser2 to render HTML documents inside a Win32 application.

Community
  • 1
  • 1
Madhur Ahuja
  • 22,211
  • 14
  • 71
  • 124

1 Answers1

1

IHTMLDocument is a non-visual component and so cannot do what you ask. IWebBrowser2 is the visual component that you need.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490